Skip to content

Commit

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

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

Expand Down

0 comments on commit ec86c73

Please sign in to comment.