我试图通过以下链接嵌入vlc播放器
http://wiki.videolan.org/HowTo_Integrate_VLC_plugin_in_your_webpage
我在mozilla中收到一条缺少插件的消息,应该安装哪个插件才能实现此功能
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script language="javascript" src="http://revolunet.github.com/VLCcontrols/src/jquery-vlc.js"></script>
<link rel="stylesheet" type="text/css" href="http://revolunet.github.com/VLCcontrols/src/styles.css" />
<script language="javascript">
var player = VLCobject.embedPlayer('vlc1', 400, 300);
player.play('http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi');
</script>
EDIT
<html>
<head>
<embed type="application/x-vlc-plugin" name="player" autoplay="no" loop="no" target="udp:@239.255.12.42" />
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script language="javascript" src="http://revolunet.github.com/VLCcontrols/src/jquery-vlc.js"></script>
<link rel="stylesheet" type="text/css" href="http://revolunet.github.com/VLCcontrols/src/styles.css" />
<script language="javascript">
$(document).ready(function() {
var player = VLCobject.embedPlayer('vlc1', 400, 300);
player.play('http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_surround-fix.avi');
});
</script>
</head>
<body>
<div id="vlc1" name="vlc1" class="vlc1" ></div>
</body>
</html>
答案 0 :(得分:1)
如果您的代码一切正常,我会尝试在文档就绪上加载它或在结束标记之前移动上面的代码块。
你可能需要一些时间来分享mozilla中缺少的插件,并显示更多代码,例如你试图加载vlc的块元素。
编辑:
对于Windows,请看: http://wiki.videolan.org/Windows#VLC_Plugin_for_Firefox_.28Mozilla.29
如果没有,请告诉您的操作系统。
答案 1 :(得分:0)
您需要在系统上安装VLC播放器。安装时选中删除缓存和首选项选项,并在安装后刷新页面。