Skip to content

Commit

Permalink
refactor: move isloaded (5)
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 21, 2024
1 parent 8d5b270 commit 88ade02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ function WebOsVideo(options) {
setSubs(info);

setTracks(info);
isLoaded = true;

unsubscribe(cb);
}
Expand Down Expand Up @@ -974,6 +973,7 @@ function WebOsVideo(options) {
var initMediaId = function (cb) {
function retrieveMediaId() {
if (videoElement.mediaId) {
isLoaded = true;
knownMediaId = videoElement.mediaId;
clearInterval(timer);
subscribe(cb);
Expand Down

0 comments on commit 88ade02

Please sign in to comment.