Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
be0f5959
Commit
be0f5959
authored
Jun 29, 2009
by
Cyril Mathé
Committed by
Jean-Baptiste Kempf
Jul 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mozilla & ActiveX: Update test.html
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3c4c5eb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
11 deletions
+101
-11
projects/activex/test.html
projects/activex/test.html
+51
-6
projects/mozilla/test.html
projects/mozilla/test.html
+50
-5
No files found.
projects/activex/test.html
View file @
be0f5959
...
@@ -210,6 +210,24 @@ Insert Slider widget
...
@@ -210,6 +210,24 @@ Insert Slider widget
</TD>
</TD>
</TR>
</TR>
<TR>
<TR>
<TD>
Marquee:
<INPUT
type=
button
value=
"Enable"
onClick=
'getVLC("vlc").video.marquee.enable();'
>
<INPUT
type=
button
value=
"Disable"
onClick=
'getVLC("vlc").video.marquee.disable();'
>
<INPUT
size=
4
value=
""
id=
"marqueeIntValue"
>
<SELECT
readonly
onClick=
"doMarqueeOption(this.value,document.getElementById('marqueeIntValue').value);"
>
<OPTION
value=
1
>
Color
</OPTION>
<OPTION
value=
2
>
Opacity
</OPTION>
<OPTION
value=
3
>
Position
</OPTION>
<OPTION
value=
4
>
Refresh
</OPTION>
<OPTION
value=
5
>
Size
</OPTION>
<OPTION
value=
6
>
Text
</OPTION>
<OPTION
value=
7
>
Timeout
</OPTION>
<OPTION
value=
8
>
X
</OPTION>
<OPTION
value=
9
>
Y
</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:
...
@@ -504,9 +522,9 @@ function doGo(targetURL)
...
@@ -504,9 +522,9 @@ function doGo(targetURL)
// clear() may return before the playlist has actually been cleared
// clear() may return before the playlist has actually been cleared
// just wait for it to finish its job
// just wait for it to finish its job
}
}
var options = [":rtsp-tcp"];
var options = [":rtsp-tcp"];
var itemId = vlc.playlist.add(targetURL,"",options);
var itemId = vlc.playlist.add(targetURL,"",options);
options = [];
options = [];
if( itemId != -1 )
if( itemId != -1 )
{
{
// play MRL
// play MRL
...
@@ -527,11 +545,11 @@ function doGo(targetURL)
...
@@ -527,11 +545,11 @@ function doGo(targetURL)
function doAdd(targetURL)
function doAdd(targetURL)
{
{
var vlc = getVLC("vlc");
var vlc = getVLC("vlc");
var options = [":vout-filter=deinterlace", ":deinterlace-mode=linear"];
var options = [":vout-filter=deinterlace", ":deinterlace-mode=linear"];
if( vlc )
if( vlc )
{
{
vlc.playlist.add(targetURL, "", options);
vlc.playlist.add(targetURL, "", options);
options = [];
options = [];
doItemCount();
doItemCount();
}
}
}
}
...
@@ -611,10 +629,10 @@ function onPlay()
...
@@ -611,10 +629,10 @@ function onPlay()
function onEnd()
function onEnd()
{
{
document.getElementById("state").innerHTML = "End...";
document.getElementById("state").innerHTML = "End...";
doStop();
doStop();
}
}
var liveFeedText = ["Live", "((Live))", "(( Live ))", "(( Live ))"];
var liveFeedText = ["Live", "((Live))", "(( Live ))", "(( Live ))"];
var liveFeedRoll = 0;
var liveFeedRoll = 0;
function onPlaying()
function onPlaying()
...
@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos)
...
@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos)
}
}
}
}
function doMarqueeOption(option, value)
{
var vlc = getVLC("vlc");
val = parseInt(value);
if( vlc )
{
if (option == 1)
vlc.video.marquee.color(val);
if (option == 2)
vlc.video.marquee.opacity(val);
if (option == 3)
vlc.video.marquee.position(val);
if (option == 4)
vlc.video.marquee.refresh(val);
if (option == 5)
vlc.video.marquee.size(val);
if (option == 6)
vlc.video.marquee.text(value);
if (option == 7)
vlc.video.marquee.timeout(val);
if (option == 8)
vlc.video.marquee.x(val);
if (option == 9)
vlc.video.marquee.y(val);
}
}
//-->
//-->
</SCRIPT>
</SCRIPT>
</BODY>
</BODY>
...
...
projects/mozilla/test.html
View file @
be0f5959
...
@@ -210,6 +210,24 @@ Insert Slider widget
...
@@ -210,6 +210,24 @@ Insert Slider widget
</TD>
</TD>
</TR>
</TR>
<TR>
<TR>
<TD>
Marquee:
<INPUT
type=
button
value=
"Enable"
onClick=
'getVLC("vlc").video.marquee.enable();'
>
<INPUT
type=
button
value=
"Disable"
onClick=
'getVLC("vlc").video.marquee.disable();'
>
<INPUT
size=
4
value=
""
id=
"marqueeIntValue"
>
<SELECT
readonly
onClick=
"doMarqueeOption(this.value,document.getElementById('marqueeIntValue').value);"
>
<OPTION
value=
1
>
Color
</OPTION>
<OPTION
value=
2
>
Opacity
</OPTION>
<OPTION
value=
3
>
Position
</OPTION>
<OPTION
value=
4
>
Refresh
</OPTION>
<OPTION
value=
5
>
Size
</OPTION>
<OPTION
value=
6
>
Text
</OPTION>
<OPTION
value=
7
>
Timeout
</OPTION>
<OPTION
value=
8
>
X
</OPTION>
<OPTION
value=
9
>
Y
</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:
...
@@ -504,9 +522,9 @@ function doGo(targetURL)
...
@@ -504,9 +522,9 @@ function doGo(targetURL)
// clear() may return before the playlist has actually been cleared
// clear() may return before the playlist has actually been cleared
// just wait for it to finish its job
// just wait for it to finish its job
}
}
var options = [":rtsp-tcp"];
var options = [":rtsp-tcp"];
var itemId = vlc.playlist.add(targetURL,"",options);
var itemId = vlc.playlist.add(targetURL,"",options);
options = [];
options = [];
if( itemId != -1 )
if( itemId != -1 )
{
{
// play MRL
// play MRL
...
@@ -527,11 +545,11 @@ function doGo(targetURL)
...
@@ -527,11 +545,11 @@ function doGo(targetURL)
function doAdd(targetURL)
function doAdd(targetURL)
{
{
var vlc = getVLC("vlc");
var vlc = getVLC("vlc");
var options = [":vout-filter=deinterlace", ":deinterlace-mode=linear"];
var options = [":vout-filter=deinterlace", ":deinterlace-mode=linear"];
if( vlc )
if( vlc )
{
{
vlc.playlist.add(targetURL, "", options);
vlc.playlist.add(targetURL, "", options);
options = [];
options = [];
doItemCount();
doItemCount();
}
}
}
}
...
@@ -614,7 +632,7 @@ function onEnd()
...
@@ -614,7 +632,7 @@ function onEnd()
doStop();
doStop();
}
}
var liveFeedText = ["Live", "((Live))", "(( Live ))", "(( Live ))"];
var liveFeedText = ["Live", "((Live))", "(( Live ))", "(( Live ))"];
var liveFeedRoll = 0;
var liveFeedRoll = 0;
function onPlaying()
function onPlaying()
...
@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos)
...
@@ -719,6 +737,33 @@ function onInputTrackerChange(inputTracker, value, pos)
}
}
}
}
function doMarqueeOption(option, value)
{
var vlc = getVLC("vlc");
val = parseInt(value);
if( vlc )
{
if (option == 1)
vlc.video.marquee.color(val);
if (option == 2)
vlc.video.marquee.opacity(val);
if (option == 3)
vlc.video.marquee.position(val);
if (option == 4)
vlc.video.marquee.refresh(val);
if (option == 5)
vlc.video.marquee.size(val);
if (option == 6)
vlc.video.marquee.text(value);
if (option == 7)
vlc.video.marquee.timeout(val);
if (option == 8)
vlc.video.marquee.x(val);
if (option == 9)
vlc.video.marquee.y(val);
}
}
//-->
//-->
</SCRIPT>
</SCRIPT>
</BODY>
</BODY>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment