Page 1 of 1

VLC plugin in firefox

Posted: 17 Aug 2008 23:33
by padmanabhps
Hi,

I am new to multimedia plugins usage and I am trying to display a local .wmv file in firefox using mozilla-vlc-plugin. Here is the code I am using in html. But I get a black box with "no video" on it. Any suggestions?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Video Streaming</TITLE>
</HEAD>
<script>
function load(){
var elem = document.getElementById("vlc");
elem.playlist.add("http://localhost:8080");
elem.playlist.play();
}
</script>
<BODY onLoad="load()">
<embed type="application/x-vlc-plugin"
pluginspage="http://www.videolan.org"
version="VideoLAN.VLCPlugin.2"
width="352"
height="288"
loop="no"
id="vlc">
</embed>
</BODY>
</HTML>

Re: VLC plugin in firefox

Posted: 18 Aug 2008 00:28
by thannoy
Hi,

What happen if you replace "http://localhost:8080" by "file:///C:/path/to/your/video/file.wmv"?

regards,
Anthony

Re: VLC plugin in firefox

Posted: 18 Aug 2008 01:26
by padmanabhps
Thanks Anthony. It worked. But when I refresh the browser it just hangs..!!

Any suggestions?

Also, this was a static file, but I was to display a realtime streaming file by hosting a file on the apache server. Any inputs will be highly appreciated. :)

Thanks.

Re: VLC plugin in firefox

Posted: 18 Aug 2008 09:10
by thannoy
For the crash, the next VLC release (0.9.0) will be more stable. You can wait for it (around 1 week!) or try its unstable nightly build (http://nightlies.videolan.org)

Re: VLC plugin in firefox

Posted: 05 Sep 2008 12:04
by carlosabdomingos
Hi,

What happen if you replace "http://localhost:8080" by "file:///C:/path/to/your/video/file.wmv"?

regards,
Anthony
That situation is for a previous recorded video, right? And for a real time video, directly for a webcam?