JWPlayer 初次播放时黑屏
我在客户网站上有 JWPlayer。
客户抱怨有时在初始加载时,jwplayer 会按预期自动开始播放,但会出现黑屏。声音正常,传输中的进度指示器正在移动。
无论我做什么,我都无法在我的机器上重现该错误。
我正在使用 JWPlayer 版本 5。
这是我用来嵌入的代码:
<script type="text/javascript" src="/Frontend/Javascript/swfobject.js"></script>
<div id="mediaspace"><embed type="application/x-shockwave-flash" src="/Frontend/Flash/player5.swf" style="" id="flashvideo" name="flashvideo" width="720" height="432" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="&file=/film/nameofmovie.f4v&type=video&bufferlength=4&autostart=true&stretching=fill"></embed></div>
<script type="text/javascript">
var so = new SWFObject('/Frontend/Flash/player5.swf','mpl','720','432','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','/film/nameofmovie.f4v');
so.addVariable('bufferlength','4');
so.addVariable('autostart','true');
so.addVariable('stretching','fill');
so.write('mediaspace');
</script>
<br />
<br />
有没有人有 JWPlayer 的解决方案或类似的经验?
I have JWPlayer on a clients' site.
The client complains that sometimes on initial load, the jwplayer will autostart playback as intended but with a black screen. Sound is alright, and the progress indicator in the transport is moving.
No matter what I do, I can't recreate the error on my machine.
I'm using version 5 of JWPlayer.
Here is the code i use to embed:
<script type="text/javascript" src="/Frontend/Javascript/swfobject.js"></script>
<div id="mediaspace"><embed type="application/x-shockwave-flash" src="/Frontend/Flash/player5.swf" style="" id="flashvideo" name="flashvideo" width="720" height="432" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="&file=/film/nameofmovie.f4v&type=video&bufferlength=4&autostart=true&stretching=fill"></embed></div>
<script type="text/javascript">
var so = new SWFObject('/Frontend/Flash/player5.swf','mpl','720','432','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','/film/nameofmovie.f4v');
so.addVariable('bufferlength','4');
so.addVariable('autostart','true');
so.addVariable('stretching','fill');
so.write('mediaspace');
</script>
<br />
<br />
Does anyone have a solution or a similar experience with JWPlayer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据您的具体问题,该问题可能已在最新版本 JW Player for Flash 5.2 中得到修复。
如果升级播放器无法解决您的问题,则可能是视频编码或元数据的编码问题。 F4v相当于mp4。我建议首先尝试使用此处提供的说明修复元数据: http:// /renaun.com/blog/2007/08/22/234/。如果这不起作用,请尝试使用 FFmpeg 重新编码视频。
最好的,
扎克
Depending on your particular issue, this may have been fixed in the most recent release, JW Player for Flash 5.2.
If upgrading the player doesn't fix your issue, it could be an encoding issue with the video's encoding or metadata. F4v is equivalent to mp4. I'd recommend trying to fix the metadata first using the directions available here: http://renaun.com/blog/2007/08/22/234/. If that doesn't work, try re-encoding the video using FFmpeg.
Best,
Zach