Skip to content

Commit

Permalink
Set focus to player when playing
Browse files Browse the repository at this point in the history
  • Loading branch information
railsjack committed Jul 21, 2019
1 parent cd88838 commit cc58472
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions player/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var Player = function () {
playerCaption.src = base_dir + '/' + vtt_files[index]
video_player.textTracks[0].mode = 'showing';
video_player.play();
video_player.focus();
}
return {
play: _play
Expand Down Expand Up @@ -117,6 +118,8 @@ document.ready(function (event) {
Player.play(e.target.value)
});

TutorialList.load();

});


Expand Down

0 comments on commit cc58472

Please sign in to comment.