Android Question SMM playback of HLS broadcasts

TILogistic

Expert
Licensed User
Longtime User
I am testing SMM by reproducing HLS links (m3u8), in B4A I cannot reproduce them with SMM, but using the library (CreateHLSSource) directly it does reproduce.

How can I change the Datasource in SMM (exoplayer)?

Note:

code used:
B4X:
'    B4A works correctly
'    Player1.Initialize("Player")
'    Dim Url As String = "https://video06.logicahost.com.br/retroplustv/retroplustv/playlist.m3u8?PlaylistM3UCL"
'    Player1.Prepare(Player1.CreateHLSSource(Url))
'    SimpleExoPlayerView1.Player = Player1
'    Player1.Play

'    SMM B4A:
'    https://developer.android.com/media/media3/exoplayer/hls?hl=es-419#java
'    Unexpected mime: Application/vnd.apple.mpegurl 'B4A Error
'    application/x-mpegURL (mime .m3u8 .m3u)

    Dim Url As String = "https://video06.logicahost.com.br/retroplustv/retroplustv/playlist.m3u8?PlaylistM3UCL"
    Dim MimeType As String = IIf(xui.IsB4J, "video/*","video/x-mpegURL")
   
    MediaManager.SetMediaWithExtra(PanelVideo, Url, MimeType, Extra)

Library Direct:

1708989609604.png

Regards
 
Top