Android Question Exoplayer Error on m3u8 and youtube

victormedranop

Well-Known Member
Licensed User
Longtime User
i have some error with the library exoplayer.
when i try youtube

Error: com.google.android.exoplayer2.ParserException: inputStream does not contain a valid media presentation description

and with m3u8 file from the demo

Error: com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException: Unable to connect to https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8

but i can connect to the source without any problem with vlc

B4X:
    sources.Initialize
    sources.Add(player1.CreateHLSSource("https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8"))
'    sources.Add(player1.CreateUriSource("https://html5demos.com/assets/dizzy.mp4"))
    sources.Add(player1.CreateDashSource("https://youtu.be/Fkk-xik519w"))
    player1.Prepare(player1.CreateListSource(sources))
    SimpleExoPlayerView1.Player = player1
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…