Skip to content

Commit

Permalink
refactor: add onpropchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 21, 2024
1 parent 8e75f5e commit 54b0d18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -1039,6 +1040,7 @@ function WebOsVideo(options) {
// }
isLoaded = false;
onPropChanged('stream');
onPropChanged('loaded');
onPropChanged('paused');
onPropChanged('time');
onPropChanged('duration');
Expand Down

0 comments on commit 54b0d18

Please sign in to comment.