Skip to content

Commit

Permalink
Fixed issue of vtt_files
Browse files Browse the repository at this point in the history
  • Loading branch information
railsjack committed Oct 27, 2019
1 parent 30bfba4 commit 10af773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/components/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 10af773

Please sign in to comment.