From 10af7738df324d44af3fc537cdec87bf9fc58753 Mon Sep 17 00:00:00 2001 From: railsjack Date: Sun, 27 Oct 2019 17:15:17 +0800 Subject: [PATCH] Fixed issue of vtt_files --- player/components/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/components/player.js b/player/components/player.js index b40614d..5788590 100644 --- a/player/components/player.js +++ b/player/components/player.js @@ -29,7 +29,7 @@ module.exports = class Player { var base_dir = Helper.getListDir(); this.playerUI.preload = true; this.playerUI.src = base_dir + "/" + mp4_files[index]; - this.captionUI.src = base_dir + "/" + vtt_files[index]; + this.captionUI.src = base_dir + "/" + subtitles[index]; this.playerUI.textTracks[0].mode = "showing"; this.titleUI.innerText = Helper.getHumanTitle(mp4_files[index]);