Skip to content

Commit

Permalink
refactor: move isloaded (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 21, 2024
1 parent f4e38aa commit b2a3ffb
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,8 @@ function WebOsVideo(options) {
onPropChanged('stream');
videoElement.autoplay = typeof commandArgs.autoplay === 'boolean' ? commandArgs.autoplay : true;

isLoaded = true;
onPropChanged('loaded');
onPropChanged('paused');
onPropChanged('time');
onPropChanged('duration');
Expand Down Expand Up @@ -1011,7 +1013,6 @@ function WebOsVideo(options) {
videoElement.src = stream.url;

initMediaId(startVideo);
isLoaded = true;
} else {
onError(Object.assign({}, ERROR.UNSUPPORTED_STREAM, {
critical: true,
Expand Down

0 comments on commit b2a3ffb

Please sign in to comment.