Android Question Stream audio with FFMPEG library

mediait

Member
Licensed User
Longtime User
Is it possible to stream audio(internet radio stations) with the FFMPEG_b4a library.

I can stream videos no problem using:

B4X:
Sub Globals
   
    Dim FFMpegMediaController1 As FFMpegMediaController
    Dim FFMpegVideoView1 As FFMpegVideoView

End Sub

Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
        FFMpegVideoView1.Initialize("FFMpegVideoView1")
        Activity.AddView(FFMpegVideoView1, 0, 0, 100%x, 100%y)
           
        FFMpegMediaController1.Initialize("FFMpegMediaController1")       
        FFMpegVideoView1.SetMediaController(FFMpegMediaController1)   
                           FFMpegVideoView1.SetVideoPath("http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8")
           
    End If   

End Sub

But there seems to be no method to stream / play audio. I've tried using a radio url in the SetVideoPath but the app just closes without errors.

Can anyone please help?
 

moster67

Expert
Licensed User
Longtime User
In the future, it would be better if you posted question related to FFMPEG_b4a in its dedicated thread. It was pure luck I saw your question.

That said, I have never tried streaming radio. If you can post some streaming links, I will take a look. It might be because the codecs are missing (or not supported) considering I compiled the so-files to be so light as possible.
 
Upvote 0
Top