From 1f827cd0b4ca9aab04a91f151b81caeecb7614b4 Mon Sep 17 00:00:00 2001 From: railsjack Date: Sat, 20 Jul 2019 15:21:53 -0300 Subject: [PATCH] Added features to play files --- player/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/custom.js b/player/custom.js index 3df4b11..6295a20 100644 --- a/player/custom.js +++ b/player/custom.js @@ -20,7 +20,7 @@ document.ready = function (callback) { var Player = function () { var _play = function (index) { - var base_dir = + var base_dir = _get_dir(); video_player.src = base_dir + '/' + mp4_files[index] playerCaption.src = base_dir + '/' + vtt_files[index] video_player.textTracks[0].mode = 'showing';