fix debug output
This commit is contained in:
parent
3a8a11cc31
commit
55973cec25
@ -8,7 +8,7 @@ index 28e87a66..88a71abf 100644
|
|||||||
if (t.paused) {
|
if (t.paused) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 'buildplaypause ... t.paused': ", _promise);
|
+ console.debug("play() returned promise at 'buildplaypause ... t.paused': ", _promise);
|
||||||
} else {
|
} else {
|
||||||
t.pause();
|
t.pause();
|
||||||
}
|
}
|
||||||
@ -22,7 +22,7 @@ index b9cf2b96..07c400f3 100644
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
- player.play();
|
- player.play();
|
||||||
+ var _promise = player.play();
|
+ var _promise = player.play();
|
||||||
+ debug("play() returned promise at 'start again to track new time': ", _promise);
|
+ console.debug("play() returned promise at 'start again to track new time': ", _promise);
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -32,7 +32,7 @@ index b9cf2b96..07c400f3 100644
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
- player.play();
|
- player.play();
|
||||||
+ var _promise = player.play();
|
+ var _promise = player.play();
|
||||||
+ debug("play() returned promise at 'start again to track new time (#2)': ", _promise);
|
+ console.debug("play() returned promise at 'start again to track new time (#2)': ", _promise);
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ index b9cf2b96..07c400f3 100644
|
|||||||
if (new Date() - lastKeyPressTime >= 1000) {
|
if (new Date() - lastKeyPressTime >= 1000) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 'restartPlayer': ", _promise);
|
+ console.debug("play() returned promise at 'restartPlayer': ", _promise);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleMouseup = () => {
|
handleMouseup = () => {
|
||||||
@ -52,7 +52,7 @@ index b9cf2b96..07c400f3 100644
|
|||||||
t.slider.focus();
|
t.slider.focus();
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 't.forcedHandlePause': ", _promise);
|
+ console.debug("play() returned promise at 't.forcedHandlePause': ", _promise);
|
||||||
}
|
}
|
||||||
t.forcedHandlePause = false;
|
t.forcedHandlePause = false;
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ index b9cf2b96..07c400f3 100644
|
|||||||
if (t.paused) {
|
if (t.paused) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 'IS_FIREFOX ... t.paused': ", _promise);
|
+ console.debug("play() returned promise at 'IS_FIREFOX ... t.paused': ", _promise);
|
||||||
} else {
|
} else {
|
||||||
t.pause();
|
t.pause();
|
||||||
}
|
}
|
||||||
@ -76,7 +76,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
if (IS_IPAD && t.node.getAttribute('autoplay')) {
|
if (IS_IPAD && t.node.getAttribute('autoplay')) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 'override Apple's autoplay override for iPads': ", _promise);
|
+ console.debug("play() returned promise at 'override Apple's autoplay override for iPads': ", _promise);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ((t.isVideo || (!t.isVideo && (t.options.features.length || t.options.useDefaultControls))) && !(IS_ANDROID && t.options.AndroidUseNativeControls)) {
|
} else if ((t.isVideo || (!t.isVideo && (t.options.features.length || t.options.useDefaultControls))) && !(IS_ANDROID && t.options.AndroidUseNativeControls)) {
|
||||||
@ -86,7 +86,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
if (!IS_IOS && !IS_ANDROID) {
|
if (!IS_IOS && !IS_ANDROID) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at '!IS_IOS && !IS_ANDROID': ", _promise);
|
+ console.debug("play() returned promise at '!IS_IOS && !IS_ANDROID': ", _promise);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -96,7 +96,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
if (autoplay && isNative) {
|
if (autoplay && isNative) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 'force autoplay for HTML5': ", _promise);
|
+ console.debug("play() returned promise at 'force autoplay for HTML5': ", _promise);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.options.success) {
|
if (t.options.success) {
|
||||||
@ -106,7 +106,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
} else if (t.paused) {
|
} else if (t.paused) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 'else if (t.paused)': ", _promise);
|
+ console.debug("play() returned promise at 'else if (t.paused)': ", _promise);
|
||||||
} else {
|
} else {
|
||||||
t.pause();
|
t.pause();
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
if (t.options.loop) {
|
if (t.options.loop) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 't.options.loop': ", _promise);
|
+ console.debug("play() returned promise at 't.options.loop': ", _promise);
|
||||||
} else if (!t.options.alwaysShowControls && t.controlsEnabled) {
|
} else if (!t.options.alwaysShowControls && t.controlsEnabled) {
|
||||||
t.showControls();
|
t.showControls();
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
if (autoplay && isNative) {
|
if (autoplay && isNative) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ _promise = t.play();
|
+ _promise = t.play();
|
||||||
+ debug("play() returned promise at 'autoplay && isNative': ", _promise);
|
+ console.debug("play() returned promise at 'autoplay && isNative': ", _promise);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t.options.success) {
|
if (t.options.success) {
|
||||||
@ -136,7 +136,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
if (t.paused) {
|
if (t.paused) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 't.options.clickToPlayPause ... t.paused': ", _promise);
|
+ console.debug("play() returned promise at 't.options.clickToPlayPause ... t.paused': ", _promise);
|
||||||
} else {
|
} else {
|
||||||
t.pause();
|
t.pause();
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ index 0a2a25b2..9091eaf5 100644
|
|||||||
if (t.paused) {
|
if (t.paused) {
|
||||||
- t.play();
|
- t.play();
|
||||||
+ var _promise = t.play();
|
+ var _promise = t.play();
|
||||||
+ debug("play() returned promise at 't.paused': ", _promise);
|
+ console.debug("play() returned promise at 't.paused': ", _promise);
|
||||||
} else {
|
} else {
|
||||||
t.pause();
|
t.pause();
|
||||||
}
|
}
|
||||||
@ -160,7 +160,7 @@ index a29484c0..d3040193 100644
|
|||||||
node.load();
|
node.load();
|
||||||
- node.play();
|
- node.play();
|
||||||
+ var _promise = node.play();
|
+ var _promise = node.play();
|
||||||
+ debug("play() returned promise at 'Reload the source only in case of the renderer is active at the moment': ", _promise);
|
+ console.debug("play() returned promise at 'Reload the source only in case of the renderer is active at the moment': ", _promise);
|
||||||
} else {
|
} else {
|
||||||
mediaElement.generateError('Media error: Format(s) not supported or source(s) not found', mediaFiles);
|
mediaElement.generateError('Media error: Format(s) not supported or source(s) not found', mediaFiles);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user