From cc5847232751718dc6eeb50d2d9a972f99cbb4b6 Mon Sep 17 00:00:00 2001 From: railsjack Date: Sat, 20 Jul 2019 22:38:10 -0300 Subject: [PATCH] Set focus to player when playing --- player/custom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/player/custom.js b/player/custom.js index 94b116f..23c4af9 100644 --- a/player/custom.js +++ b/player/custom.js @@ -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 @@ -117,6 +118,8 @@ document.ready(function (event) { Player.play(e.target.value) }); + TutorialList.load(); + });