ios - 如果有多路直播流,如何实现切换?
怪我咯
怪我咯 2017-04-18 09:15:08
0
1
390

视频直播现在很火,有不少直播云可以使用。通常是推流和拉流。假如有两个视频流,如何在服务端切换视频流,客户端同时也无缝无延迟无中断的实现切换?

这里不贴具体代码。

希望大神提供解决思路。

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
阿神

Maybe it can be like this:

  • The background notifies the client to switch from a.rtmp to b.rtmp

  • The client creates a new live view behind the live view, hides it first, and loads b.rtmp

  • Confirm that b.rtmp has started playing, destroy the interface of a.rtmp, and display b.rtmp

It’s impossible to connect exactly because there is no timeline

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!