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.
<!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;
gSTB.SetTopWin(0);
player.aspectConversion = 0;
player.videoWindowMode = 0;
player.setViewport({x, y, width, height});
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',
program
});
}
catch(e)
{
alert(e.message);
}
}
</script>
</head>
<body onload="init();">
</body>
</html>
That way, it always plays the program 312, even with "program".
I believe that's because 312 is the first program os the MPTS.
When I replace
player.play({
solution:'auto',
uri:'udp://238.0.0.205',
program
});
with
player.play({playStr:'auto udp://238.0.0.205 program'});
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.