Skip to content

Commit

Permalink
Fixed an issue where the stopPlayback methods wouldn't call the stop …
Browse files Browse the repository at this point in the history
…function for the ExoPlayer
  • Loading branch information
brianwernick committed Feb 18, 2016
1 parent 84e9b88 commit 4f45881
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public void stopPlayback() {
if (!useExo) {
mediaPlayer.stop();
} else {
emExoPlayer.setPlayWhenReady(false);
emExoPlayer.stop();
}

stopProgressPoll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ public void stopPlayback() {
if (!useExo) {
videoView.stopPlayback();
} else {
emExoPlayer.setPlayWhenReady(false);
emExoPlayer.stop();
}

if (defaultControls != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ public void seekTo(long positionMs) {
player.seekTo(positionMs);
}

public void stop() {
player.setPlayWhenReady(false);
player.stop();
}

public void release() {
if (rendererBuilder != null) {
rendererBuilder.cancel();
Expand Down

0 comments on commit 4f45881

Please sign in to comment.