Skip to content

Commit

Permalink
[Test] Try Play Video 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed May 30, 2024
1 parent ec86c73 commit 7c4cd2d
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions src/WebOsVideo/WebOsVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ function WebOsVideo(options) {
if (subscribed) return;
subscribed = true;
var answered = false;
setTimeout(function() {
playVideo();
}, 0);
if (subscribeRetries === 1 && cb) {
cb();
}
luna({
method: 'subscribe',
parameters: {
Expand Down Expand Up @@ -341,21 +341,6 @@ function WebOsVideo(options) {
});
};

var playVideo = function () {
luna({
method: 'play',
parameters: {
'mediaId': mediaId()
}
}, function (result) {
// eslint-disable-next-line no-console
console.log('luna play result', JSON.stringify(result || {}));
}, function (err) {
// eslint-disable-next-line no-console
console.log('luna play error', JSON.stringify(err || {}));
});
};

var unsubscribe = function (cb) {
if (!subscribed) return;
subscribed = false;
Expand Down

0 comments on commit 7c4cd2d

Please sign in to comment.