为什么暂停可以阻止 Flash 视频滞后?
这是一个更理论化的问题:
当我通过 flashplayer 或 divx 在互联网上观看较大的视频(> 15 分钟)时,几分钟后,视频质量开始下降(就像视频开始滞后)。现在,当我按下暂停按钮并在一小段时间(例如10秒)后恢复播放时,视频质量又恢复正常几分钟,但随后视频质量再次下降,因此我必须再次暂停一段时间几秒钟。
我的问题是,从软件设计的角度来看,为什么暂停会阻止视频滞后?我认为这可能是因为软件有时间刷新其缓存,但我对正确的答案非常感兴趣。
This is a more theoretical question:
When I'm watching larger videos (> 15 min) on the internet via flashplayer or divx, after some minutes, the video quality begins to decrease (like the video starts lagging). When I now press the pause button and resume the playing after a short period of time, like 10 seconds, the video quality is again like normal for another couple of minutes, but then the video quality again decreases, so I have to pause again for some seconds.
My question is, from a software design point-of-view, why does the pausing stop the video from lagging? I thought it could be because the software gets time to refresh its caches, but I would be really interested in the correct answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 YouTube。它显示用作预读缓冲区的缓冲区是否已满。当它耗尽时(由于连接速度较慢),视频将开始降级并变慢。暂停会导致预读缓冲区再次填满。
Try youtube. It shows how is the buffer that serves as the read-ahead buffer is full. When it is exhausted (due to slower connection) the video will start to degrade and slow down. Pausing causes read-ahead buffer to fill again.
听起来更像是内存问题。当您破坏内存时 - 抓取它,然后必须删除更多内存才能再次抓取 - 它会影响性能,在这种情况下看起来视频滞后
Sounds more like a memory problem. When you're thrashing memory - grabbing it, then having to delete more before you can grab again - it affects performance, which in this case looks like the video is lagging