jwplayer 在缓冲时跳过视频
Jwplayer 在缓冲时会跳过视频流。我从一周前就注意到这个问题。但代码没有变化。播放器版本为 5.5.1641。问题似乎仅限于大型视频文件(超过 150mb,持续 2.35 秒)。它不会在相同的缓冲时间跳过,就像它在随机时间跳过视频一样。有时,2秒,有时,5秒,有时,20秒等等。我猜这可能是因为视频流下载时丢包。但我不确定。有人可以帮我吗?
jwplayer($(this).attr('id')).setup({
flashplayer: 'http://localhost/project1/public/upload/player.swf',
file: 'http://localhost/project1/public/upload/' + $(this).html(),
height:480,
plugins: {
hd: { file: "http://localhost/project1/public/upload/" + $(this).html(), fullscreen: true }
},
width: 800,
dock:false,
controlbar:'none',
provider: 'http',
'http.startparam':'starttime',
icons:false
});
Jwplayer skips video streaming while it is buffering. I noticed this problem since a week before only. But there is no change in code. Player version is 5.5.1641. The problem seems to be with large video files only (more than 150mb for 2.35 seconds). It doesn't skip at the same buffer time, like, it skips the video at random time. Sometimes, 2 seconds, sometimes, 5, sometimes, 20 etc. I'm guessing this could be because of packet loss in video streams downloading. But I'm not sure. Can anyone plz help me on this ?
jwplayer($(this).attr('id')).setup({
flashplayer: 'http://localhost/project1/public/upload/player.swf',
file: 'http://localhost/project1/public/upload/' + $(this).html(),
height:480,
plugins: {
hd: { file: "http://localhost/project1/public/upload/" + $(this).html(), fullscreen: true }
},
width: 800,
dock:false,
controlbar:'none',
provider: 'http',
'http.startparam':'starttime',
icons:false
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来问题出在视频文件本身。由于网络浏览器无法像 vlc 播放器等那样,我们应该以较低的质量对视频进行编码。此外,桌面播放器可以播放浏览器无法播放的损坏视频。
这是我使用的 ffmpeg 编码设置。希望它对其他人有任何帮助。
It seems the problem is with video file itself. Becoz web browsers are not capable like vlc player etc, we should encode video in lower quality. Also, desktop players can play broken videos where we browsers cannot.
Here is the ffmpeg encoding settings I used. Hope it can be of any help for others.
我发现这个问题与代码无关,而是与我的网络主机上的超时设置有关。我给他们发了一封电子邮件,他们将下载超时时间增加到了最大值,我没有再遇到任何问题。
I found this issue to be not code related but to do with a time out setting on the my web host. I dropped them an email and they increased the download time out amount to the max and I had no further problems with this.