Media Control Questions
Posted
#1
(In Topic #406)
Trainee
1) Sometimes the stream gets interrupted, due to network issues at my end or server issues at the radio station end. Either way, I can find no way to detect the loss of the stream in order to display an appropriate message or to trigger a reload of the URL to restore the stream. Does anybody have any ideas on how to achieve this?
2) Some radio statiions output metadata along with the stream which identifies the current song being played. I have no idea how this is either encoded or formatted. Is it possible to extract this metadata using Gambas functionality?
Thanks.
Beeza
Posted
Regular

Beeza said
I have created a simple internet radio application…
1) Sometimes the stream gets interrupted, due to network issues at my end or server issues at the radio station end…
I'll be very interested to see if you find a solution to the loss of an audio stream, as I couldn't find one.
My internet radios launch mPlayer because when it loses the stream, mplayer exits (I think it was the only player that I tried that did this). By periodically checking whether the mplayer process is still running, I'm able to deal with this problem.
I also periodically check whether my program is still running (Python, not Gambas) and restart it if necessary. These two checks work really well in my case.
1 guest and 0 members have just viewed this.



