Skip to content

Commit

Permalink
ETPAND-9785: Fix crash when video ends using a native source (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
armands-malejevs authored Apr 13, 2023
1 parent a35007e commit 4046555
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,10 @@ private void startPlayback() {
switch (player.getPlaybackState()) {
case Player.STATE_IDLE:
case Player.STATE_ENDED:
if (isUriNativeSource(this.srcUri)) {
// Native source does not need to be initialized again
break;
}
initializePlayer();
break;
case Player.STATE_BUFFERING:
Expand Down

0 comments on commit 4046555

Please sign in to comment.