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.
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