Android Question Exoplayer Bug ? Only play one video

cruzeiro991

Member
Licensed User
Longtime User
Hello.
I'm trying to make a app to play streamings by uri but the exoplayer only plays the first url, after release, initialize and create new resource it's play the same video. What's happening?

This is part of code. newmedia() run when user select other media source (is not a playlist), but exoplayer ever play the first video source.

B4X:
Sub Globals

    Dim vv As SimpleExoPlayer
    Private viewvv As SimpleExoPlayerView
    'viewvv are in designer

End Sub

Sub newmedia

    vv.Pause   
    vv.Release
    vv.Initialize("vv")

    Dim urisource As Object = vv.CreateUriSource(linkvideo)

    viewvv.Player = vv
    vv.Prepare(urisource)
    vv.Play

End Sub
 

cruzeiro991

Member
Licensed User
Longtime User
If I remember correctly you don't need to release SimpleExoPlayer to play a new source.

If you know the list of urls beforehand then you should use SimpleExoPlayer.CreateListSource and it will play all sources one after another.

I already have tried play another source without release but is the same thing. I dont know the next video to insert on create source because the user decides.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…