VLC embeds in html : "vlc.playlist is null" !?!?
Posted: 18 Jun 2015 23:59
Hi,
I'm trying to live-stream a http stream from a webcam on a website, so I need to set the network-caching to a low value.
I know that this can only be done via javascript, but unfortunately the latest VLC (v2.2.1) throws
It seems something is wrong with the current version of the VLC plugin.
Below is the html code I'm using:
Computer:
Windows 7, 64bit
VLC: v2.2.1
Browser: IE 8
VLC IE Add-in version: 2.2.1
I'm trying to live-stream a http stream from a webcam on a website, so I need to set the network-caching to a low value.
I know that this can only be done via javascript, but unfortunately the latest VLC (v2.2.1) throws
on the vlc object.'vlc.playlist' is null or not an object
It seems something is wrong with the current version of the VLC plugin.
Below is the html code I'm using:
Code: Select all
<html>
<title>VLC plugin</title>
<body>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
width="1280"
height="720"
id="vlc"
</embed>
<script>
var vlc = document.getElementById("vlc");
vlc.playlist.add("http://xxx.com:8080", "mystream", ":network-caching=10");
vlc.playlist.play();
</script>
</body>
</html>
Computer:
Windows 7, 64bit
VLC: v2.2.1
Browser: IE 8
VLC IE Add-in version: 2.2.1