This commit is contained in:
Sam Potts
2019-06-21 00:10:57 +10:00
parent e8e2b8ba39
commit c4b3e0672e
20 changed files with 125 additions and 304 deletions

View File

@ -133,7 +133,8 @@ const captions = {
});
// Turn off native caption rendering to avoid double captions
Object.assign(track, { mode: 'hidden' });
// eslint-disable-next-line no-param-reassign
track.mode = 'hidden';
// Add event listener for cue changes
on.call(this, track, 'cuechange', () => captions.updateCues.call(this));