Android Question RemoveView Release ExoPlayer

paul allen

Member
Licensed User
Longtime User
i have exoplayer in a module in an app, when i press back button to select another video, when i go to the player module the first video is still playing.
how might i stop the first video when i leave that module? i've tried 'release' all over the module and nothing.
thanks for your helpl.
 

drgottjr

Expert
Licensed User
Longtime User
player.pause
 
Upvote 0

paul allen

Member
Licensed User
Longtime User
Thanks for your quick response, however i just tried this suggestion and still not stopping the video. i put player1.pause in activity.pause and also in the
backkey.button pressed ???
 
Upvote 0

paul allen

Member
Licensed User
Longtime User
OK!!!! figured out the problem:
it had a: If FirstTime Then end if
to load and run video, i took this out and is working fine..
thanks. for your helpl.
 
Upvote 0
Top