From f960d67e20970a9b0127d8a3be35900cfa316617 Mon Sep 17 00:00:00 2001 From: "Timothy Z." Date: Tue, 21 May 2024 14:00:21 +0300 Subject: [PATCH] refactor: onpropcahnged --- src/WebOsVideo/WebOsVideo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WebOsVideo/WebOsVideo.js b/src/WebOsVideo/WebOsVideo.js index c1abbce..8660eeb 100644 --- a/src/WebOsVideo/WebOsVideo.js +++ b/src/WebOsVideo/WebOsVideo.js @@ -957,6 +957,7 @@ function WebOsVideo(options) { onPropChanged('stream'); videoElement.autoplay = typeof commandArgs.autoplay === 'boolean' ? commandArgs.autoplay : true; + onPropChanged('loaded'); onPropChanged('paused'); onPropChanged('time'); onPropChanged('duration'); @@ -1002,7 +1003,7 @@ function WebOsVideo(options) { try { // console.log('try play'); isLoaded = true; - onPropChanged('loaded'); + // onPropChanged('loaded'); videoElement.play(); } catch(e) { // console.log('can\'t start video');