From 9fb01bab23e58f214e657d3d241342e68c74528b Mon Sep 17 00:00:00 2001 From: "Timothy Z." Date: Tue, 21 May 2024 14:32:01 +0300 Subject: [PATCH] refactor: add logs again --- src/WebOsVideo/WebOsVideo.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/WebOsVideo/WebOsVideo.js b/src/WebOsVideo/WebOsVideo.js index 0088afe..6dd8115 100644 --- a/src/WebOsVideo/WebOsVideo.js +++ b/src/WebOsVideo/WebOsVideo.js @@ -989,11 +989,14 @@ function WebOsVideo(options) { }; var startVideo = function () { - // console.log('startVideo'); + console.log('startVideo'); // not needed? // videoElement.src = stream.url; try { + isLoaded = true; + onPropChanged('loaded'); + console.log(isLoaded, 'video element load'); // eslint-disable-line no-console videoElement.load(); } catch(e) { // console.log('can\'t load video'); @@ -1004,6 +1007,7 @@ function WebOsVideo(options) { // console.log('try play'); isLoaded = true; onPropChanged('loaded'); + console.log(isLoaded, 'video element play'); // eslint-disable-line no-console videoElement.play(); } catch(e) { // console.log('can\'t start video');