Formatting fix
This commit is contained in:
parent
f1b4db4f36
commit
599883e684
2
dist/plyr.js.map
vendored
2
dist/plyr.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js.map
vendored
2
dist/plyr.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -68,8 +68,8 @@ class Fullscreen {
|
|||||||
document,
|
document,
|
||||||
this.prefix === 'ms' ? 'MSFullscreenChange' : `${this.prefix}fullscreenchange`,
|
this.prefix === 'ms' ? 'MSFullscreenChange' : `${this.prefix}fullscreenchange`,
|
||||||
() => {
|
() => {
|
||||||
// TODO: Filter for target??
|
// TODO: Filter for target??
|
||||||
onChange.call(this);
|
onChange.call(this);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -828,7 +828,7 @@ class Plyr {
|
|||||||
*/
|
*/
|
||||||
toggleCaptions(input) {
|
toggleCaptions(input) {
|
||||||
captions.toggle.call(this, input, false);
|
captions.toggle.call(this, input, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the caption track by index
|
* Set the caption track by index
|
||||||
@ -1032,35 +1032,35 @@ class Plyr {
|
|||||||
|
|
||||||
// Provider specific stuff
|
// Provider specific stuff
|
||||||
if (this.isHTML5) {
|
if (this.isHTML5) {
|
||||||
// Clear timeout
|
// Clear timeout
|
||||||
clearTimeout(this.timers.loading);
|
clearTimeout(this.timers.loading);
|
||||||
|
|
||||||
// Restore native video controls
|
// Restore native video controls
|
||||||
ui.toggleNativeControls.call(this, true);
|
ui.toggleNativeControls.call(this, true);
|
||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
done();
|
done();
|
||||||
} else if (this.isYouTube) {
|
} else if (this.isYouTube) {
|
||||||
// Clear timers
|
// Clear timers
|
||||||
clearInterval(this.timers.buffering);
|
clearInterval(this.timers.buffering);
|
||||||
clearInterval(this.timers.playing);
|
clearInterval(this.timers.playing);
|
||||||
|
|
||||||
// Destroy YouTube API
|
// Destroy YouTube API
|
||||||
if (this.embed !== null && is.function(this.embed.destroy)) {
|
if (this.embed !== null && is.function(this.embed.destroy)) {
|
||||||
this.embed.destroy();
|
this.embed.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
done();
|
done();
|
||||||
} else if (this.isVimeo) {
|
} else if (this.isVimeo) {
|
||||||
// Destroy Vimeo API
|
// Destroy Vimeo API
|
||||||
// then clean up (wait, to prevent postmessage errors)
|
// then clean up (wait, to prevent postmessage errors)
|
||||||
if (this.embed !== null) {
|
if (this.embed !== null) {
|
||||||
this.embed.unload().then(done);
|
this.embed.unload().then(done);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Vimeo does not always return
|
// Vimeo does not always return
|
||||||
setTimeout(done, 200);
|
setTimeout(done, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user