diff options
author | Sam Potts <me@sampotts.me> | 2017-11-19 17:54:38 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2017-11-19 17:54:38 +1100 |
commit | 4b62a5c74dc5f67d0f12126f554df53f02541ef7 (patch) | |
tree | fbf9060236f658d86117a1b97cf29a2e48444b11 /src/js/plugins | |
parent | 3f744ef63a33f479b6d30a2f40717c6b44beb331 (diff) | |
download | plyr-4b62a5c74dc5f67d0f12126f554df53f02541ef7.tar.lz plyr-4b62a5c74dc5f67d0f12126f554df53f02541ef7.tar.xz plyr-4b62a5c74dc5f67d0f12126f554df53f02541ef7.zip |
Captions fix
Diffstat (limited to 'src/js/plugins')
-rw-r--r-- | src/js/plugins/vimeo.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js index 10c0fc62..f033a969 100644 --- a/src/js/plugins/vimeo.js +++ b/src/js/plugins/vimeo.js @@ -221,7 +221,7 @@ const vimeo = { // Get captions player.embed.getTextTracks().then(tracks => { - player.captions.tracks = tracks; + player.media.textTracks = tracks; captions.setup.call(player); }); @@ -232,7 +232,7 @@ const vimeo = { cue = utils.stripHTML(data.cues[0].text); } - captions.set.call(player, cue); + captions.setText.call(player, cue); }); player.embed.on('loaded', () => { |