Page 1 of 1

Mozilla web plugin – how to use marquee from JavaScript

Posted: 29 Jun 2010 10:20
by draganr
Hello all,
I use VLC plugin for Firefox browser, but have problems displaying text over video which is running.
I use Firefox 3.6.3, and have installed VLC 1.1.0.
I can successfully run video inside my html page, but wasn’t able to overlay any text.
Overlaying text (and images) works when VLC is called as a standalone player, with appropriate command-line parameters.
I tried two approaches in my JavaScript code:
1) use the new feature of Mozilla plugin, introduced in v1.1.0 - marquee object (http://wiki.videolan.org/Documentation: ... deo_object):

Code: Select all

var ident = parent.vlc.playlist.add(url); parent.vlc.playlist.playItem(ident); parent.vlc.video.marquee.enable(); setTimeout("vlc.video.marquee.text = 'some text'; vlc.video.marquee.color = 0xFF0000;", 2000);
2) use options for adding item to playlist object (similar to http://88.191.250.119/viewtopic.php?f=1 ... 03&start=0):

Code: Select all

var options = new Array(":sub-filter=marq", ":marq-marquee=’123’", ":marq-position=0"); var ident = parent.vlc.playlist.add(url, "name", options); parent.vlc.playlist.playItem(ident);
None of these approaches did the trick. Can anybody point me in the right direction?
Thank you,
Dragan.

Re: Mozilla web plugin – how to use marquee from JavaScript

Posted: 08 Jul 2012 16:50
by avigabay
Hi all,
I have try both ways
first way's

var options = new Array(":sub-filter=marq", ":marq-marquee='12dsds3'", ":marq-position=0", ":marq-size=50",":marq-color=32768");

//var options = new Array[":rtsp-tcp", ":sub-filter=marq", ":marq-marquee=’123sdsdds’", ":marq-position=50"];
var itemId = vlc.playlist.add(targetURL, "aaaa", options);
vlc.playlist.playItem(itemId);

second way
vlc.video.marquee.enable();
vlc.video.marquee.text = "aaaaa";

No way is working
somebody can help

Avi

Re: Mozilla web plugin – how to use marquee from JavaScript

Posted: 14 Jul 2012 10:45
by Decfi
Hello,
Are there some working options with last 2.0.2 plugin version ?
thanks