Speed settings logic improvements
This commit is contained in:
+4
-2
@@ -42,13 +42,16 @@ const html5 = {
|
||||
.filter(Boolean);
|
||||
},
|
||||
|
||||
extend() {
|
||||
setup() {
|
||||
if (!this.isHTML5) {
|
||||
return;
|
||||
}
|
||||
|
||||
const player = this;
|
||||
|
||||
// Set speed options from config
|
||||
player.options.speed = player.config.speed.options;
|
||||
|
||||
// Set aspect ratio if fixed
|
||||
if (!is.empty(this.config.ratio)) {
|
||||
setAspectRatio.call(player);
|
||||
@@ -93,7 +96,6 @@ const html5 = {
|
||||
if (preload !== 'none' || readyState) {
|
||||
// Restore time
|
||||
player.once('loadedmetadata', () => {
|
||||
|
||||
player.speed = playbackRate;
|
||||
player.currentTime = currentTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user