Mozilla web plugin – how to use marquee from JavaScript

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
draganr
New Cone
New Cone
Posts: 1
Joined: 29 Jun 2010 10:08

Mozilla web plugin – how to use marquee from JavaScript

Postby draganr » 29 Jun 2010 10:20

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.

avigabay
New Cone
New Cone
Posts: 2
Joined: 08 Jul 2012 16:47

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

Postby avigabay » 08 Jul 2012 16:50

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

Decfi
New Cone
New Cone
Posts: 5
Joined: 18 Mar 2009 19:36

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

Postby Decfi » 14 Jul 2012 10:45

Hello,
Are there some working options with last 2.0.2 plugin version ?
thanks


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests