I got the ActiveX plugin to work in IE8 using the following code, but the page doesn't work after upgrading IE9 beta. In that case sounds and controls work, but the actual video can't be seen. Anybody has a solution? Is this due to IE9 or the plugin?
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Myvids</title>
<link href="main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="player">
<object type="application/x-vlc-plugin"
id="vlcplayer"
width="720px"
height="540px"
classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921">
<param name="volume" value="100" />
<param name="autoplay" value="true" />
<param name="loop" value="false" />
</object>
</div>
<h1>My vids</h1>
<ol>
<li><a href="javascript:;" onclick='player();'>Click a vid!</a></li>
</ol>
<script type="text/javascript" language="javascript">
function player() {
var vlc = document.getElementById("vlcplayer");
try {
var id = vlc.playlist.add("Vid1.flv");
vlc.playlist.playItem(id);
}
catch (ex) {
alert(ex);
}
}
</script>
</body>
</html>