Fixed a bug that caused created multiple ExoPlayer instances during each Screen composition. (Cause the phone to freeze if I keep the video view open for too long)
Its quite hard to see the problem.
Problem becomes more noticeable when using exoPlayer.play() which plays the video in background but doesn't update the UI. (obviously because it affects a separate invisible instance of the player)
and also exoPlayer.stop() doesn't actually stop the playing video.
Fixed a bug that caused created multiple ExoPlayer instances during each Screen composition. (Cause the phone to freeze if I keep the video view open for too long)
Its quite hard to see the problem. Problem becomes more noticeable when using
exoPlayer.play()
which plays the video in background but doesn't update the UI. (obviously because it affects a separate invisible instance of the player) and alsoexoPlayer.stop()
doesn't actually stop the playing video.