Commit cdce6740 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by JP Dinger

add vlc.video.logo video filter test case to test.html

parent 851e1c56
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> F<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML> <HTML>
<TITLE>VLC Plugin test page</TITLE> <TITLE>VLC Plugin test page</TITLE>
<STYLE> <STYLE>
...@@ -115,6 +115,7 @@ Insert VideoLAN.VLCPlugin.2 ...@@ -115,6 +115,7 @@ Insert VideoLAN.VLCPlugin.2
width="640" width="640"
height="480" height="480"
toolbar="true" toolbar="true"
text="Waiting for video"
name="vlc"> name="vlc">
</EMBED> </EMBED>
</OBJECT> </OBJECT>
...@@ -210,7 +211,7 @@ Insert Slider widget ...@@ -210,7 +211,7 @@ Insert Slider widget
</TD> </TD>
</TR> </TR>
<TR> <TR>
<TD>Marquee: <TD>Marquee video filter:
<INPUT type=button value="Enable" onClick='getVLC("vlc").video.marquee.enable();'> <INPUT type=button value="Enable" onClick='getVLC("vlc").video.marquee.enable();'>
<INPUT type=button value="Disable" onClick='getVLC("vlc").video.marquee.disable();'> <INPUT type=button value="Disable" onClick='getVLC("vlc").video.marquee.disable();'>
<INPUT size=4 value="" id="marqueeIntValue"> <INPUT size=4 value="" id="marqueeIntValue">
...@@ -228,6 +229,24 @@ Insert Slider widget ...@@ -228,6 +229,24 @@ Insert Slider widget
</TD> </TD>
</TR> </TR>
<TR> <TR>
<TD>Logo video filter:
<INPUT type=button value="Enable" onClick='getVLC("vlc").video.logo.enable();'>
<INPUT type=button value="Disable" onClick='getVLC("vlc").video.logo.disable();'>
<INPUT size=4 value="" id="logoIntValue">
<SELECT readonly onClick="doLogoOption(this.value,document.getElementById('logoIntValue').value);">
<OPTION value=1>File</OPTION>
<OPTION value=2>Transparency</OPTION>
<OPTION value=3>Position</OPTION>
<OPTION value=4>Repeat</OPTION>
<OPTION value=5>Delay</OPTION>
<OPTION value=6>X</OPTION>
<OPTION value=7>Y</OPTION>
<OPTION value=8>Width</OPTION>
<OPTION value=9>Height</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<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:
...@@ -764,6 +783,33 @@ function doMarqueeOption(option, value) ...@@ -764,6 +783,33 @@ function doMarqueeOption(option, value)
} }
} }
function doLogoOption(option, value)
{
var vlc = getVLC("vlc");
val = parseInt(value);
if( vlc )
{
if (option == 1)
vlc.video.logo.file(val);
if (option == 2)
vlc.video.logo.transparency(val);
if (option == 3)
vlc.video.logo.position(val);
if (option == 4)
vlc.video.logo.repeat(val);
if (option == 5)
vlc.video.logo.delay(val);
if (option == 6)
vlc.video.logo.x(val);
if (option == 7)
vlc.video.logo.y(val);
if (option == 8)
vlc.video.logo.width(val);
if (option == 9)
vlc.video.logo.height(val);
}
}
//--> //-->
</SCRIPT> </SCRIPT>
</BODY> </BODY>
......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> F<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML> <HTML>
<TITLE>VLC Plugin test page</TITLE> <TITLE>VLC Plugin test page</TITLE>
<STYLE> <STYLE>
...@@ -211,7 +211,7 @@ Insert Slider widget ...@@ -211,7 +211,7 @@ Insert Slider widget
</TD> </TD>
</TR> </TR>
<TR> <TR>
<TD>Marquee: <TD>Marquee video filter:
<INPUT type=button value="Enable" onClick='getVLC("vlc").video.marquee.enable();'> <INPUT type=button value="Enable" onClick='getVLC("vlc").video.marquee.enable();'>
<INPUT type=button value="Disable" onClick='getVLC("vlc").video.marquee.disable();'> <INPUT type=button value="Disable" onClick='getVLC("vlc").video.marquee.disable();'>
<INPUT size=4 value="" id="marqueeIntValue"> <INPUT size=4 value="" id="marqueeIntValue">
...@@ -229,6 +229,24 @@ Insert Slider widget ...@@ -229,6 +229,24 @@ Insert Slider widget
</TD> </TD>
</TR> </TR>
<TR> <TR>
<TD>Logo video filter:
<INPUT type=button value="Enable" onClick='getVLC("vlc").video.logo.enable();'>
<INPUT type=button value="Disable" onClick='getVLC("vlc").video.logo.disable();'>
<INPUT size=4 value="" id="logoIntValue">
<SELECT readonly onClick="doLogoOption(this.value,document.getElementById('logoIntValue').value);">
<OPTION value=1>File</OPTION>
<OPTION value=2>Transparency</OPTION>
<OPTION value=3>Position</OPTION>
<OPTION value=4>Repeat</OPTION>
<OPTION value=5>Delay</OPTION>
<OPTION value=6>X</OPTION>
<OPTION value=7>Y</OPTION>
<OPTION value=8>Width</OPTION>
<OPTION value=9>Height</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<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:
...@@ -765,6 +783,33 @@ function doMarqueeOption(option, value) ...@@ -765,6 +783,33 @@ function doMarqueeOption(option, value)
} }
} }
function doLogoOption(option, value)
{
var vlc = getVLC("vlc");
val = parseInt(value);
if( vlc )
{
if (option == 1)
vlc.video.logo.file(val);
if (option == 2)
vlc.video.logo.transparency(val);
if (option == 3)
vlc.video.logo.position(val);
if (option == 4)
vlc.video.logo.repeat(val);
if (option == 5)
vlc.video.logo.delay(val);
if (option == 6)
vlc.video.logo.x(val);
if (option == 7)
vlc.video.logo.y(val);
if (option == 8)
vlc.video.logo.width(val);
if (option == 9)
vlc.video.logo.height(val);
}
}
//--> //-->
</SCRIPT> </SCRIPT>
</BODY> </BODY>
......
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