FlowPlayer 和 IE
刚刚设置 FlowPlayer 在我正在开发的新网络应用程序上播放一些视频。在 Safari (iPad) 中工作得很好,但是,我在 IE 中似乎没有收到任何音频。
代码:
<div id="videoContainer" style="display: none; text-align: center;">
<a id="player2" style="display:block; margin:0px auto; width:600px; height:400px"></a>
</div>
和JS:
var player2 = document.getElementById("player2");
player2.href = "http://server/Media/" + videoName;
$f(player2, "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {
autoPlay: true
}
});
视频播放正常,但没有音频。
有什么想法吗?
谢谢。
Have just setup FlowPlayer to play some videos on a new web app i'm working on. Works perfectly well in Safari (iPad), however, it seems i am not getting any audio in IE.
Code:
<div id="videoContainer" style="display: none; text-align: center;">
<a id="player2" style="display:block; margin:0px auto; width:600px; height:400px"></a>
</div>
and JS:
var player2 = document.getElementById("player2");
player2.href = "http://server/Media/" + videoName;
$f(player2, "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {
autoPlay: true
}
});
Video plays fine, but no audio.
Any ideas?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
难道是资源管理器没有安装正确的编解码器?
Could it be that explorer doesnt have the correct codec installed?
不知道我是否理解你的问题但是:
也许问题出在隐藏父标签时的自动播放选项?尝试在显示 #videoContainer 标签时手动执行 play() 函数。
Don't know if I understood your problem BUT:
Maybe the problem is with autoplay option when parent tag is hidden? Try to execute play() function manually when you show #videoContainer tag.