Skip to content

Commit

Permalink
Allow overriding vtt.js URL
Browse files Browse the repository at this point in the history
Put the option to override the URL to vtt.js somewhere that it can be easily accessed.
  • Loading branch information
dmlap authored and gkatsev committed Nov 25, 2014
1 parent 42a8c7a commit 2b36c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tracks.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ vjs.TextTrack = vjs.Component.extend({
// lazy load vtt.js
if (!window.WebVTT) {
script = document.createElement('script');
script.src = options['vtt.js'] || '../node_modules/vtt.js/dist/vtt.js';
script.src = player.options()['vtt.js'] || '../node_modules/vtt.js/dist/vtt.js';
player.el().appendChild(script);
window.WebVTT = true;
}
Expand Down

0 comments on commit 2b36c26

Please sign in to comment.