Skip to content

Commit

Permalink
refactor: add logs again
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 21, 2024
1 parent fba22a3 commit 9fb01ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -989,11 +989,14 @@ function WebOsVideo(options) {
};

var startVideo = function () {
// console.log('startVideo');
console.log('startVideo');
// not needed?
// videoElement.src = stream.url;

try {
isLoaded = true;
onPropChanged('loaded');
console.log(isLoaded, 'video element load'); // eslint-disable-line no-console
videoElement.load();
} catch(e) {
// console.log('can\'t load video');
Expand All @@ -1004,6 +1007,7 @@ function WebOsVideo(options) {
// console.log('try play');
isLoaded = true;
onPropChanged('loaded');
console.log(isLoaded, 'video element play'); // eslint-disable-line no-console
videoElement.play();
} catch(e) {
// console.log('can\'t start video');
Expand Down

0 comments on commit 9fb01ba

Please sign in to comment.