libsoundtouch icon indicating copy to clipboard operation
libsoundtouch copied to clipboard

Documentation for INTERNET_RADIO

Open TimoGo opened this issue 7 years ago • 4 comments

Hi,

thank you for this great library, everything works well, only one hint. Maybe you could state where to find the right numbers for the radio-stations in: device.play_media(Source.INTERNET_RADIO, '4712') # Studio Brussel Ive found the numbers on http://vtuner.com/setupapp/guide/asp/BrowseStations/startpage.asp But I dont know whether this is the primary source.

Best regards Timo

PS: Maybe the Soundtouch App gives the answer to this. But I dont use it, because of too much spying.

TimoGo avatar Aug 06 '17 10:08 TimoGo

Hi @TimoGo

Good question, I don't know where the numbers come from. I'll do some search.

CharlesBlonde avatar Aug 06 '17 21:08 CharlesBlonde

Hi,

Thank you very much for this helpful library and the source for radio IDs. I managed to get things going under Windows 10 with Python 3.7.2 and your package using PowerShell.

The connection to my soundtouch device seems to be fine. I used several 'device.*' commands successfully. However, when I try 'device.play_media(Source.INTERNET_RADIO,'ID')' my device says 'Select using API'.

What does that mean? What do I have to do next?

Best, Christian

cstraube avatar Jan 03 '19 12:01 cstraube

One option is to use TuneIn that Bose SoundTouch supports.

For this, I defined TUNEIN = "TUNEIN" in utils.py/Source and STATIONURL = "stationurl" in utils.py/Type.

Then I invoked play_media as such:

device.play_media(source=Source.TUNEIN, location="/v1/playback/station/s00000", source_acc=None, media_type=Type.STATIONURL)

You can find location by looking at the last part of the URL of the radio station at tunein.com. For example, for BBC Radio 1, the TuneIn URL is https://tunein.com/radio/BBC-Radio-1-988-s24939/ , so location would become "/v1/playback/station/s24939".

junoslukan avatar Feb 19 '22 12:02 junoslukan

There is already a pull request making changes mentioned above: #33

junoslukan avatar Feb 19 '22 12:02 junoslukan