Mozilla web plugin – how to use marquee from JavaScript
Posted: 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):
2) use options for adding item to playlist object (similar to http://88.191.250.119/viewtopic.php?f=1 ... 03&start=0):
None of these approaches did the trick. Can anybody point me in the right direction?
Thank you,
Dragan.
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);
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);
Thank you,
Dragan.