I isonliveradio Member Licensed User Longtime User Jul 8, 2025 #1 Hi, is there an example code for using ffmpeg to play icecast audio streams in b4i?
Erel B4X founder Staff member Licensed User Longtime User Jul 8, 2025 #2 Check this example: https://www.b4x.com/android/forum/threads/background-playback.49337 Upvote 0
I isonliveradio Member Licensed User Longtime User Jul 15, 2025 #3 Thanks. I can get that to work if I load the stream URL in application_start. Is there a way to change the file to be played in a sub routine, ie. load a different URL each time i go to the subroutine? This seems to only work if its set globally when the application starts. Upvote 0
Thanks. I can get that to work if I load the stream URL in application_start. Is there a way to change the file to be played in a sub routine, ie. load a different URL each time i go to the subroutine? This seems to only work if its set globally when the application starts.
Erel B4X founder Staff member Licensed User Longtime User Jul 16, 2025 #4 You can call VideoPlayer.LoadVideoUrl from any sub you need. Upvote 0