Commit ec2bb2fd authored by Jean-Paul Saman's avatar Jean-Paul Saman

Use the integer value for teletext page in test.html.

parent a8d53a30
...@@ -208,7 +208,7 @@ Verbosity: ...@@ -208,7 +208,7 @@ Verbosity:
<TD> <TD>
<INPUT type=button id="telx" value="Teletext off" onClick='doToggleTeletext();'> <INPUT type=button id="telx" value="Teletext off" onClick='doToggleTeletext();'>
Teletext page: Teletext page:
<INPUT size=4 value="100" id="telxPage" onClick="doTelxPage(document.getElementById('telxPage').value);"> <INPUT size=4 value="100" id="telxPage" onClick='doTelxPage(document.getElementById("telxPage").value);'>
</TD> </TD>
</TR> </TR>
</TABLE> </TABLE>
...@@ -303,7 +303,6 @@ function doAspectRatio(value) ...@@ -303,7 +303,6 @@ function doAspectRatio(value)
function doSubtitle(value) function doSubtitle(value)
{ {
var vlc = getVLC("vlc"); var vlc = getVLC("vlc");
alert(vlc.video.subtitle + value);
vlc.video.subtitle = vlc.video.subtitle + value; vlc.video.subtitle = vlc.video.subtitle + value;
document.getElementById("spuTextField").innerHTML = vlc.video.subtitle; document.getElementById("spuTextField").innerHTML = vlc.video.subtitle;
}; };
...@@ -311,8 +310,7 @@ function doSubtitle(value) ...@@ -311,8 +310,7 @@ function doSubtitle(value)
function doTelxPage(value) function doTelxPage(value)
{ {
var vlc = getVLC("vlc"); var vlc = getVLC("vlc");
alert( value ); vlc.video.teletext = parseInt(value);
vlc.video.teletext = 889; //value;
}; };
function doToggleTeletext() function doToggleTeletext()
...@@ -324,13 +322,11 @@ function doToggleTeletext() ...@@ -324,13 +322,11 @@ function doToggleTeletext()
{ {
document.getElementById("telx").innerHTML = "Teletext on"; document.getElementById("telx").innerHTML = "Teletext on";
telxState = true; telxState = true;
alert( "telextext on" );
} }
else else
{ {
document.getElementById("telx").innerHTML = "Teletext off"; document.getElementById("telx").innerHTML = "Teletext off";
telxState = false; telxState = false;
alert( "telextext off" );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment