Skip to content

Commit

Permalink
refactor: onpropcahnged
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 21, 2024
1 parent c16a602 commit f960d67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit f960d67

Please sign in to comment.