Ensure content is stopped during video player cleanup.

This commit is contained in:
Alex Hart
2022-10-24 12:58:53 -03:00
parent 91f0b75a80
commit 94f072c5aa

View File

@@ -234,6 +234,8 @@ public class VideoPlayer extends FrameLayout {
}
public void cleanup() {
stop();
if (this.exoPlayer != null) {
exoView.setPlayer(null);
exoControls.setPlayer(null);