I have written a radio mobile app which works great and plays the FM stations music which is being broadcast via 'broadcast radio'.
The stream is basically the same as icecast/shoutcast and I believe is being broadcast as an mpeg.
I am currently doing the following:
Global string AudioURL = streaming.broadcast.radio/hitmixhigh
let audio = new Audio(runtime.globalVars.AudioURL);
audio.play();
This works perfect and I can use script to play and pause the stream. However as its a mobile app it naturally loses focus or goes in to sleep mode after timing out or someone locking the phone.
I can see that the Audio Object as a 'Play in background' option.
Is there anyway of linking the script to the Audio object to get it play the MPEG audio stream?
(Note that it is a stream and never downloads as it is constantly suppling more audio so the URL download will never end.)
Any help would be appreciated.
Adrian