VLC Plugin: Javascript Behavior different 2.0.8 & 2.1.0

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
NetBean5000
New Cone
New Cone
Posts: 5
Joined: 02 Oct 2013 23:27

VLC Plugin: Javascript Behavior different 2.0.8 & 2.1.0

Postby NetBean5000 » 03 Oct 2013 01:25

I am testing to replace logos after some time via java script: On ubuntu 2.0.8 this works fine, but under windows 2.1.0 NOT meaning:

I get the audio volume level via js alert and all but no logo shows ever up?!

Code: Select all

<html> <title>VLC Mozilla plugin test page</title> <body> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org/vlc" width="640" height="480" id="vlc" target="http://download.media.tagesschau.de/video/2013/1002/TV-20131002-1705-2701.webm.webm"> </embed> <script language="Javascript"> <!-- var vlc = document.getElementById("vlc"); /*vlc.video.logo.disable();*/ /* vlc.audio.toggleMute(); */ /* alert ("hello"); */ alert (vlc.versionInfo()); /* setTimeout(function(){alert("timeouted")}, 10000); */ vlc.video.marquee.enable(); /*vlc.video.marquee.color="0x000000"; vlc.video.marquee.text="Gangster"; */ alert("Audio =" + vlc.audio.volume); /* vlc.video.fullscreen=true; */ vlc.video.logo.enable(); vlc.video.logo.file("http://static.gulli.com/layout/shirts/nick-shirt.png"); setTimeout(function(){alert("hi2"); vlc.video.logo.file("http://static.gulli.com/layout/icons/portal/icon_pressearchiv.png")}, 20000); //!--> </script> </body> </html>

NetBean5000
New Cone
New Cone
Posts: 5
Joined: 02 Oct 2013 23:27

Re: VLC Plugin: Javascript Behavior different 2.0.8 & 2.1.0

Postby NetBean5000 » 03 Oct 2013 12:35

I use the cool http://sourceforge.net/projects/fbvlc/?source=navbar now..

update: make sure video is actually playing (see API), onload (java script) not enough. Logo changes and all only work if stream is already really playing..


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 27 guests