I’m trying to do the same, and the only solution I’ve found so far is to use a native webpopup to load an html using the audio tag pointing to the streaming source.
You could also point directly to the streaming source, without html, but doing that will result in opening the media player interface (not sure if that’s the name, but basically the same interface of media.playVideo).
The main problems in this approach are:
- you can have only one webpopup open, so if you need to open a webpopup to show a webpage or do something you’ll interrupt the streaming
- there are no way to control the playback (play/pause) or change volume
- you can’t move or change opacity to a webpopup without closing and reopening it… so if you want to move it somewhere or hide it, it will stop the streaming
- when you open a webpopup in Corona, even setting a transparent background, it shows as a gray block at the beginning before loading the page… I’m not sure if it’s the same in xcode, but kinda sucks because you can “feel” is something not really integrated with your app
So probably the only way to do something with streaming radio is to create a html interface to play/pause the streaming and open it with a webpopup.
By the way, I’ve tried using media.playVideo, since it can load from remote sources, and it works… but you’re stuck with the fullscreen media player interface.
It would be great if media.playSound or audio.loadStream could use remote sources. That would be the perfect solution for streaming internet radio…
Any advice? [import]uid: 9158 topic_id: 2185 reply_id: 15687[/import]