Problems with MPTS

STB MAG - 245/250 • 254/255 • 270/275
alexandre
Posts: 1
Joined: 06 Dec 2018, 13:59

Problems with MPTS

Postby alexandre » 06 Dec 2018, 16:57

Hi,

How are you doing?

I have a MPTS with two programs (312 and 314). I try to play the 314 but for some reason it doesn't work. Using VLC, I can play both programs perfectly.

Here is my code.

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title></title> <script> var player; function init() { try { player = stbPlayerManager.list[0]; gSTB.SetTopWin(0); player.aspectConversion = 0; player.videoWindowMode = 0; player.setViewport({x:0, y:0, width:1920, height:1080}); player.onTracksInfo = function() { alert("onTracksInfo"); }; player.onPlayStart = function() { alert("onPlayStart"); }; player.onPlayEnd = function() { alert("onPlayEnd"); }; player.onContentInfo = function() { alert("onContentInfo"); }; player.onPlayError = function() { alert("onPlayError"); }; player.onTracksError = function() { alert("onTracksError"); }; player.onDualMono = function() { alert("onDualMono"); }; player.onTracksUpdate = function() { alert("onTracksUpdate"); }; player.onRTPBreak = function() { alert("onRTPBreak"); }; player.play({ solution:'auto', uri:'udp://238.0.0.205:49205', program:314 }); } catch(e) { alert(e.message); } } </script> </head> <body onload="init();"> </body> </html>
That way, it always plays the program 312, even with "program:314".
I believe that's because 312 is the first program os the MPTS.

When I replace

Code: Select all

player.play({ solution:'auto', uri:'udp://238.0.0.205:49205', program:314 });
with

Code: Select all

player.play({playStr:'auto udp://238.0.0.205:49205 program:314'});
It triggers an "onPlayError" event and I can't see anything on the screen.

In the following image, there are the metadata about my MPTS.
MPTS_VLC.png
Do you know what I'm doing wrong? I have tried many things.

Here is some information about my device.
Model: MAG254
Image version: 218
Image description: 0.2.18-r23-254
JS API version: 343
IGMP version: V3

Thanks in advance.

Return to “Linux Webkit STB”



Who is online

Users browsing this forum: alinjf, SEMrush [Bot] and 6 guests

cron