Embedding VLC into firefox webpage
Posted: 27 Jul 2011 09:58
Hi! I am trying to embed vlc into windows firefox only. I have successfully installed it in windows 7 but I could not reproduce the same result in windows XP. I am using Firefox 5.0.1.
I am trying to play a multicast stream from ip: 192.168.1.184 from Axis Camera.
Here is my code:
But the problem is: the video does not play. It shows a blank screen. And the Javascript error console says: "vlcc.versionInfo is not a function".
I have copied npvlc.dll and npvlc.dll.manifest into C:\Program Files\Mozilla Firefox\Plugins and restarted firefox. In my Add-ons Manager, plugins manager in firefox also shows "VLC Multimedia Plugin version 1.1.11"
But I can't play the video. Can anyone help? Thanks.
I am trying to play a multicast stream from ip: 192.168.1.184 from Axis Camera.
Here is my code:
Code: Select all
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<embed
target="rtsp://192.168.1.184:554/axis-media/media.amp"
type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
width="640"
height="480"
id="vlc"
autoplay="yes"
name="player"
></embed>
<script type="text/javascript">
var vlcc = document.getElementById("vlc");
alert(vlcc.versionInfo());
</script>
</body>
</html>
I have copied npvlc.dll and npvlc.dll.manifest into C:\Program Files\Mozilla Firefox\Plugins and restarted firefox. In my Add-ons Manager, plugins manager in firefox also shows "VLC Multimedia Plugin version 1.1.11"
But I can't play the video. Can anyone help? Thanks.