Navigation

    Sony's Developer World forum

    • Register
    • Login
    • Search
    • Home
    • Forum guidelines
    1. Home
    2. grolschie
    G
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups

    grolschie

    @grolschie

    103
    Posts
    3858
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    grolschie Follow

    Best posts made by grolschie

    • Request for new features for the Sony Audio Control API

      Hello.

      I have been enjoying developing an app for the STR-DN1080 using this API. Thank you!

      If I may request your consideration of 2 additions to the API please:


      1). Chromecast built-in and soundFields

      Enable the selection of soundField's 2chStereo and MultiChStereo when the built-in Chromecast Audio device is selected. These 2 soundFields are the only 2 accessible for this input. The notes at the bottom of this page of the online help for the STR-DN1080 confirms this.

      The IR remote's '2ch/Multi' button can toggle between these two soundFields when using the Chromecast Audio, but the API cannot. For example:

      {
      	"id":8,
      	"method":"setSoundSettings",
      	"params":[{
      		"settings":[{
      		"target":"soundField",
      		"value":"multiChStereo"
      	}]
      	}],
      	"version":"1.1"
      }
      

      results in:

      {
        "error": [
          15,
          "unsupported operation"
        ],
        "id": 8
      }
      

      To confirm this discrepancy between the IR Remote and the API, the Sony 'Music Center' app greys out the 'Sound Field' option when this input is selected. The above JSON request succeeds on other inputs.


      2). Codec Information

      Being able to querying the STR-DN1080 for the codec, bitrate, frequency information of the audio stream that it is currently being decoded by the STR-DN1080. The only way to see the codec being decoded is to physically press the Display Mode button on the front panel of the AVR.

      As an aside, I'm mystified as to why Sony didn't assign the 'Display' button on the IR remote to this function, as the button seems almost redundant in my opinion.

      Thanks in advance for your consideration.

      posted in Audio Control API
      G
      grolschie
    • Editing forum posts

      Hi. I'm not sure if this is the place to ask, but is anyone else finding that the forum is not displaying the most recent edit on posts? I'm using mobile to access the forums, and even refreshing the pages or opening a page in an incognito tab shows the earlier edits. The edit history shows the current version though, as does editing the posts.

      posted in About this forum
      G
      grolschie
    • RE: HT-ST5000: Error 12 "No such method"

      Please post your JSON and the URL that you are posting the JSON to. I'm guessing that you are sending the JSON to the wrong URL, i.e.http://ip.number.to.device:10000/sony/{Lib} where {Lib} is one of system, audio, or avContent.

      Because error code 12 is "No Such Method".

      getVolumeInformation needs to be POSTed to the "audio" lib, i.e. http://ip.number.to.device:10000/sony/audio.

      Also, try getMethodTypes on the "audio" lib as well as the "avContent" lib and you should see a lot more method types. It looks like you're querying the "system" lib.

      posted in Audio Control API
      G
      grolschie

    Latest posts made by grolschie

    • RE: HT-ST5000 setPowerStatus

      One workaround might be for the application to remember the previous input and then select it x seconds after issuing the command to 'power on'. I'm guessing the soundbar won't tell you the current input when it is in standby mode, but if it does you could query the current input before powering on instead of storing the last used input.

      posted in Audio Control API
      G
      grolschie
    • RE: HDMI output selection (A, B, A+B)?

      @david ok, thanks anyway for your quick responses. Much appreciated.

      posted in Audio Control API
      G
      grolschie
    • RE: HDMI output selection (A, B, A+B)?

      Hi @david.

      Thanks for that. Both those give error 12 as well on the STR-DN1080, which means "No Such Method".

      posted in Audio Control API
      G
      grolschie
    • RE: HDMI output selection (A, B, A+B)?

      @david

      update: No go. I'm getting error 12, so I'm presuming this feature is not implemented on the STR-DN1080. It's also not shown as a result of getMethodTypes() for the avContent library on the STR-DN1080 or the STR-DN1060.

      posted in Audio Control API
      G
      grolschie
    • RE: HDMI output selection (A, B, A+B)?

      @david thank you so much!

      posted in Audio Control API
      G
      grolschie
    • HDMI output selection (A, B, A+B)?

      Hi @david

      Some hints please about replicating the HDMI Out button on the IR remote, i.e. [HDMI A], [HDMI B], [HDMI A+B].

      Is this possible please? I don't see these outputs listed on the device URI page. Thanks in advance.

      posted in Audio Control API
      G
      grolschie
    • RE: Weird API behaviour after cold boot.

      Hi @david

      Thank you for that. That indeed makes sense. The easy solution for me then is to only query the active input when the AVR is powered up.

      posted in Audio Control API
      G
      grolschie
    • Weird API behaviour after cold boot.

      Hi @david

      I have Network Standby enabled. I have noticed that if I power off the STR-DN1080 at the wall (after powering off with the API first and waiting a short time - otherwise bad things happen to the configuration!), when the STR-DN1080 receives power again and starts responding to the API (but still on stand-by) the results of getPlayingContentInfo (1.2) are incorrect. I am detecting which input is active and it always returns the same wrong input, i.e.

      {
        "id": 132,
        "result": [
          [
            {
              "contentKind": "",
              "output": "extOutput:zone?zone=1",
              "parentUri": "",
              "source": "extInput:bd-dvd",
              "stateInfo": {
                "state": "STOPPED",
                "supplement": ""
              },
              "uri": "extInput:bd-dvd"
            }
          ]
        ]
      }
      

      If I power on the receiver with the API, and try the exact same command again it returns the correct input, i.e.

      {
        "id": 132,
        "result": [
          [
            {
              "contentKind": "",
              "output": "extOutput:zone?zone=1",
              "parentUri": "",
              "source": "extInput:sat-catv",
              "stateInfo": {
                "state": "STOPPED",
                "supplement": ""
              },
              "uri": "extInput:sat-catv"
            }
          ]
        ]
      }
      

      Every time, it's always the Blu-Ray input that the command returns. My Blu-Ray player hasn't been turned on for over a year.

      Is this expected behaviour? Thanks.

      posted in Audio Control API
      G
      grolschie
    • RE: Remotely powering up an EU model STR-DN1080?

      @david thank you anyway.

      posted in Audio Control API
      G
      grolschie
    • RE: Remotely powering up an EU model STR-DN1080?

      @david is there a way via the API to detect the region of the AVR please? Trying to anticipate problems due to the latest firmware release.

      posted in Audio Control API
      G
      grolschie
    Developer World
    Copyright © 2019 Sony Corporation. All rights reserved.
    • Contact us
    • Cookies
    • Legal