Skip to content

Commit

Permalink
Merge pull request #75 from ODNZSL/bugfix/autoplay-videos
Browse files Browse the repository at this point in the history
Start playing the video as soon as it is ready
  • Loading branch information
joshmcarthur authored May 15, 2023
2 parents 66bdd9f + be52949 commit cbabafb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public boolean onError(MediaPlayer mp, int what, int extra) {
public void onPrepared(MediaPlayer mp) {
mVideo.setMediaController(mMediaController);
mMediaController.setAnchorView(mAnchorView);
mVideo.start();
}
});

Expand Down

0 comments on commit cbabafb

Please sign in to comment.