Skip to content

Commit

Permalink
refactor: move isloaded (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 21, 2024
1 parent 5f4802f commit f4e38aa
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 @@ -994,7 +994,6 @@ function WebOsVideo(options) {

try {
videoElement.load();
isLoaded = true;
} catch(e) {
// console.log('can\'t load video');
// console.error(e);
Expand All @@ -1012,6 +1011,7 @@ 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 f4e38aa

Please sign in to comment.