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]);