Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Control of FM Radio via API?

    Audio Control API
    audio control api str-dn1080
    2
    3
    10221
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      grolschie last edited by grolschie

      Hi. I see in the API that it is possible can seek forward or backwards for radio stations (using seekBroadcastStation v1.0), and also save the found station as a preset (using presetBroadcastStation v1.0). However, I do not see a method to select a preset to actually play it, or a method to jump to a specified broadcastFreq or broadcastFreqBand.

      Are there such methods? Thanks.

      EDIT: I figured out you can select presets by appending the preset number onto the URI with ?contentId=1 , e.g. "uri":radio:fm?contentId?1 using the setPlayContent v1.2 method.

      1 Reply Last reply Reply Quote
      • D
        david DeveloperWorld last edited by

        To my knowledge there is no such method to set the radio directly. The only way to set it directly, that I know of, is via the presetBroadcastStation and then use setPlayContent to go to that preset as you have described.

        In the documentation I can't see any other valid "uri" than contnetId=X for radio, so it don't looks like you have something like "uri":radio:fm?frequency?XXXX unfortunatly.

        1 Reply Last reply Reply Quote
        • G
          grolschie last edited by grolschie

          Thanks @David.

          I'm having problems specifying a frequency using the presetBroadcastStation v1.0 function. If I specify a frequency to store, it is ignored. Even using the sample JSON on the docs webpage.

          Whether I specify the frequency, or if I omit the frequency line altogether, it simply stores the frequency that the STR-DN1080 is currently tuned to instead.

          This is suits me better actually. But this might confuse other developers as the specification in the documentation (and expected behaviour) works differently for method on this device. The receiver accepts the frequency integer without an error code - and the integer doesn't even need to be in the correct range for it to be accepted.

          This should really be mentioned in the method definition in the docs please.

          1 Reply Last reply Reply Quote
          • First post
            Last post
          Developer World
          Copyright © 2021 Sony Group Corporation. All rights reserved.
          • Contact us
          • Legal