我的插件jwplayer有问题 他在我的localhost上有2个中等240p和360p它正常运行。 但是当发送到主机需要太长时间以240p加载360p的视频时,加载速度更快,实际上我认为他正在等待加载整个视频。
我的代码:
<script type="text/javascript">
jwplayer("container").setup({
height: "97%",
width: "100%",
primary: "flash",
allowscriptaccess: "always",
autostart:true,
playlist: [{
image: "uploads/snapshots/374f9c59b58f880c5e68762bde43318a.jpg",
sources: [{
file: "uploads/374f9c59b58f880c5e68762bde43318a.mp4",
label: "360p"
},{
file: "uploads/374f9c59b58f880c5e68762bde43318a.flv",
label: "240p"
}]
}],
});
</script>