X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=projects%2Fmozilla%2Ftest.html;h=2c614202705481792078ae25028c3d0686ddff6a;hb=7eccf3a2cf7bdf158f58b8f4ef006ad604738c0b;hp=33a425e4f92bfa4680611d1495fcf701e3bb4037;hpb=6c1436c75f013dc42fd5fa8ac57cfd4ba84cf0cb;p=vlc diff --git a/projects/mozilla/test.html b/projects/mozilla/test.html index 33a425e4f9..2c61420270 100644 --- a/projects/mozilla/test.html +++ b/projects/mozilla/test.html @@ -115,6 +115,7 @@ Insert VideoLAN.VLCPlugin.2 width="640" height="480" toolbar="true" + text="Waiting for video" name="vlc"> @@ -203,6 +204,47 @@ Insert Slider widget +Deinterlacing: + + + + + + +Marquee video filter: + + + + + + + +Logo video filter: + + + + + + + Teletext page: @@ -497,8 +539,9 @@ function doGo(targetURL) // clear() may return before the playlist has actually been cleared // just wait for it to finish its job } - var options = new Array(":rtsp-tcp"); + var options = [":rtsp-tcp"]; var itemId = vlc.playlist.add(targetURL,"",options); + options = []; if( itemId != -1 ) { // play MRL @@ -519,10 +562,11 @@ function doGo(targetURL) function doAdd(targetURL) { var vlc = getVLC("vlc"); - var options = new Array(":vout-filter=deinterlace", ":deinterlace-mode=linear"); + var options = [":vout-filter=deinterlace", ":deinterlace-mode=linear"]; if( vlc ) { vlc.playlist.add(targetURL, "", options); + options = []; doItemCount(); } } @@ -605,7 +649,7 @@ function onEnd() doStop(); } -var liveFeedText = new Array("Live", "((Live))", "(( Live ))", "(( Live ))"); +var liveFeedText = ["Live", "((Live))", "(( Live ))", "(( Live ))"]; var liveFeedRoll = 0; function onPlaying() @@ -710,6 +754,56 @@ 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 = value; + 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; + } +} + +function doLogoOption(option, value) +{ + var vlc = getVLC("vlc"); + if( vlc ) + { + if (option == 1) + vlc.video.logo.file(value); + if (option == 2) + vlc.video.logo.position = value; + val = parseInt(value); + if (option == 3) + vlc.video.logo.opacity = 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; + } +} + //-->