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:
Library Direct:
Regards
How can I change the Datasource in SMM (exoplayer)?
Note:
HLS | Android media | Android Developers
developer.android.com
ExoPlayer (media3) - video player
ExoPlayer is a powerful media player created by Google: https://developer.android.com/guide/topics/media/exoplayer This version is based on Media3 ExoPlayer v1.2. It replaces ExoPlayer 2: https://www.b4x.com/android/forum/threads/exoplayer-mediaplayer-videoview-alternative.72652/#content The...
www.b4x.com
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:
Android TV with B4A
Android TV with B4A. Is it possible to make the app for Android TV with B4A? Yes it is. What we need? Hardware: * Android TV (with bluetooth build in), * Air Mouse Bluetooth Remote Control. Look HERE. Software: * B4A, Look HERE. * keyboard for android tv (LeanKey Keyboard), Look HERE. * -...
www.b4x.com
Regards