add log
This commit is contained in:
parent
ad8cdd130f
commit
4a6d9c7292
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,7 @@ function VideoViewer(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPlay() {
|
function onPlay() {
|
||||||
|
console.log('on play!!!');
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
setIsPlaying(true);
|
setIsPlaying(true);
|
||||||
setShowAutoplayCountdown(false);
|
setShowAutoplayCountdown(false);
|
||||||
|
@ -112,6 +113,7 @@ function VideoViewer(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const onPlayerReady = useCallback(player => {
|
const onPlayerReady = useCallback(player => {
|
||||||
|
console.log('on player ready!!!');
|
||||||
// https://blog.videojs.com/autoplay-best-practices-with-video-js/#Programmatic-Autoplay-and-Success-Failure-Detection
|
// https://blog.videojs.com/autoplay-best-practices-with-video-js/#Programmatic-Autoplay-and-Success-Failure-Detection
|
||||||
if (autoplaySetting || autoplayIfEmbedded) {
|
if (autoplaySetting || autoplayIfEmbedded) {
|
||||||
const promise = player.play();
|
const promise = player.play();
|
||||||
|
|
Loading…
Reference in a new issue