Skip to content

Commit

Permalink
[Test] Load Before Subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed May 30, 2024
1 parent 6fda304 commit d17ebad
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,14 @@ function WebOsVideo(options) {
if (videoElement.mediaId) {
knownMediaId = videoElement.mediaId;
clearInterval(timer);

try {
videoElement.load();
} catch(e) {
// console.log('can\'t load video');
// console.error(e);
}

setTimeout(function() {
subscribe(cb);
}, 500);
Expand All @@ -1030,12 +1038,12 @@ function WebOsVideo(options) {
// not needed?
// videoElement.src = stream.url;

try {
videoElement.load();
} catch(e) {
// console.log('can\'t load video');
// console.error(e);
}
// try {
// videoElement.load();
// } catch(e) {
// // console.log('can\'t load video');
// // console.error(e);
// }

try {
// console.log('try play');
Expand Down

0 comments on commit d17ebad

Please sign in to comment.