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

View File

@ -63,10 +63,6 @@ a.plyr__control {
// Video control
.plyr--video .plyr__control {
/* svg {
filter: drop-shadow(0 1px 1px rgba(#000, 0.15));
} */
// Hover and tab focus
&.plyr__tab-focus,
&:hover,