暂停流媒体 RTMFP
我有一个应用程序可以实时流式传输视频,并在播放过程中对其进行存档。
我的问题是:当我在直播中点击或允许“暂停”然后“播放”时会发生什么?显然,另一端流式传输的人继续这样做,并且我的应用程序继续对其进行存档,但是接收流的人呢?
他们是从存档的副本中恢复播放,还是向前搜索到流中的当前点,错过了暂停的所有内容?
干杯。
I have an app that streams in video live, and archives it as it goes along.
My question is this: What happens when I hit, or allow, 'pause' on a live stream, and then 'play'? Obviously the person on the other end streaming continues to do so, and my application continues to archive it, but what about the person receiving the stream?
Do they resume play from the archived copy, or do they seek ahead to the current point in the stream, missing everything they were paused for?
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您无法暂停直播。如果直播流在恢复时暂停,则应从当前流开始播放。如果做不到这一点,禁用暂停功能就足够了。
I think you can't pause a live stream. If a live stream is paused on resume it should start playing from the current stream. Failing that, disabling the pause feature would suffice.
我会查看 http://www.veetle.com。都是实时直播,没有暂停按钮,只有开和关按钮。
因此,为了回答您的问题,我想说,为了简单起见,暂停应该停止/暂停播放,然后在恢复时从实时流所在的位置开始。
另一方面,如果您可以暂停直播并从同一时间继续,那将非常流畅,构建起来有点混乱,但很流畅
I would check out http://www.veetle.com. It is all live steams and they do not have a pause button but rather an on and off button.
So to answer your question I would say to make it simple pause should stop/pause the playback and then when it is resumed start from where the live stream is.
On the other hand if you could pause the live stream and continue from the same time that would be really slick, a little confusing to build but slick