如何将视频块上传到服务器并实时在iOS中实时下载

发布于 2025-01-28 15:04:35 字数 423 浏览 3 评论 0原文

我正在创建一个iOS应用程序,我希望用户能够实时流动视频,但是,开始在该视频开始后加入实时流的用户,从一开始就开始观看流而不是直播(我还将添加功能性,允许用户观看以向前跳过,然后能够观看现场观看)。

我已经看过许多第三方流媒体选项,例如Agora,Twilio,Vimeo等,但是,我不相信它们满足我的需求,因为我需要加入实时流的用户从一开始就开始观看而不是生存。

我探索了不断将小型视频块上传到诸如Firebase存储之类的东西,然后不断地阅读这些块,用于观看流的用户。但是,如下所述: https://stackoverflow.com/a/37870706/1373131318 导致大量滞后。

有人知道如何做这件事来利用第三方?

I'm creating an iOS app where I want a user to be able to live stream a video, however, users who join the live stream after it starts, start watching the stream from the beginning instead of live (I will also add functionality that allows the user watching to skip ahead and then be able to watch live).

I have looked at many third party streaming options such as Agora, Twilio, Vimeo, etc, however, I don't believe they meet my needs as I need users who join the live stream to start watching from the beginning and not live.

I have explored continuously uploading small video chunks to something like firebase storage, and then continuously reading those chunks for users watching the stream. However, as explained here: https://stackoverflow.com/a/37870706/13731318 , this is to very efficient and leads to a substantial lag.

Does anyone have any idea how to go about doing this that leverages third parties?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

走过海棠暮 2025-02-04 15:04:35

我认为您可以使用HLS协议来实现此目标。
HLS允许从一开始是否开始观看。这是由设置控制的。
我不确定上传,因为我认为必须在服务器端进行更多实现。

I think you can use the HLS protocol to implement this.
HLS allows starting to watch from the beginning or not. That is controlled by the settings.
I am not sure about uploading because I think it has to be implemented on the server-side more.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文