Hi,
I want read a video streaming using "com-webos-media", it work good in emulator, but in real TV device it show a black screen without response.
My code :
webOS.service.request("luna://com.webos.media", {
method: "load",
parameters: {
"uri":"test.mp4",
"type":"media",
"payload":{
"option":{
"appId":"com.webos.app.enactbrowser",
"windowId":"_Window_Id_2"
}
}
},
onSuccess: function (args) {
webOS.service.request("luna://com.webos.media", {
method: "play",
parameters: {
"mediaId":args.mediaId
},
onSuccess: function (args) {
console.log(args);
},
onFailure: function (args) {
console.error(args);
},
loadCompleted: function () {
console.log("loadCompleted");
}
});
},
onFailure: function (args) {
console.error(args);
}
});
Please help me.
Thanks