Skip to content

Commit

Permalink
feature: add logs in subscribe fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kKaskak committed May 22, 2024
1 parent 6f1edfb commit 5c7530f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ function WebOsVideo(options) {
'subscribe': true
}
}, function (result) {
console.log('luna playback result before result.sourceInfo', result); // eslint-disable-line no-console
if (result.sourceInfo && !answered) {
answered = true;
var info = result.sourceInfo.programInfo[0];
Expand All @@ -254,11 +255,13 @@ function WebOsVideo(options) {
setTracks(info);

unsubscribe(cb);
} else {
console.log('luna playback result when sourceInfo is not found', result); // eslint-disable-line no-console
}

if ((result.error || {}).errorCode) {
answered = true;
// console.error('luna playback error', result.error);
console.error('luna playback error', result.error); // eslint-disable-line no-console
unsubscribe(cb);
// unsubscribe();
// onVideoError();
Expand Down

0 comments on commit 5c7530f

Please sign in to comment.