From 54b0d1864ae0fa58eb40db667aa7d36ace37f7e6 Mon Sep 17 00:00:00 2001 From: "Timothy Z." Date: Tue, 21 May 2024 13:39:05 +0300 Subject: [PATCH] refactor: add onpropchanged --- src/WebOsVideo/WebOsVideo.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WebOsVideo/WebOsVideo.js b/src/WebOsVideo/WebOsVideo.js index 27b55bd..33d8161 100644 --- a/src/WebOsVideo/WebOsVideo.js +++ b/src/WebOsVideo/WebOsVideo.js @@ -1003,6 +1003,7 @@ function WebOsVideo(options) { try { // console.log('try play'); isLoaded = true; + onPropChanged('loaded'); console.log(isLoaded, 'video side loaded'); videoElement.play(); } catch(e) { @@ -1039,6 +1040,7 @@ function WebOsVideo(options) { // } isLoaded = false; onPropChanged('stream'); + onPropChanged('loaded'); onPropChanged('paused'); onPropChanged('time'); onPropChanged('duration');