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?
-
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 (usingpresetBroadcastStation
v1.0). However, I do not seea method to select a preset to actually play it, ora method to jump to a specifiedbroadcastFreq
orbroadcastFreqBand
.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 thesetPlayContent
v1.2 method. -
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 usesetPlayContent
to go to that preset as you have described.In the documentation I can't see any other valid
"uri"
thancontnetId=X
for radio, so it don't looks like you have something like"uri":radio:fm?frequency?XXXX
unfortunatly. -
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.