Is it possible to play an mp3 stored on a webserver, e.g. http://example.com/myfile.mp3? Or even better, a Shoutcast mp3 stream URL?
The API docs do not really give many examples of the URI parameter for the setPlayContent function. Just a single DLNA mp3 example. And the Device URI page is very vague: https://developer.sony.com/develop/audio-control-api/api-references/device-uri
Thanks in advance.
It is not possible to play streaming audio from the internet (e.g. Shoutcast, etc) on the Sony STR-DN1080 using the Sony Audio Control API. However, it can be done using the built-in Chromecast Audio device, as per this answer on another question. For example, one can use the Google Cast SDK or an alternative such as Chromecast Java API v2.
I cannot speak of the Google Cast SDK, but I managed to get Shoutcast streams to play on the Sony STR-DN1080 using Chromecast Java API v2. In some cases one may need to append
;stream.mp3
to the Shoutcast stream URL, e.g.http://s2.onweb.gr:8604/
becomeshttp://s2.onweb.gr:8604/;stream.mp3
.I have had success playing MP3, AAC, Opus, FLAC, and Ogg streams. I hope that this helps someone.