[英]How to sync videos using WebRTC
I am a newbie in WebRTC.我是 WebRTC 的新手。 I wanted to explore how can i create a watch party (similar to what Netflix and Amazon prime offers) using WebRTC.我想探索如何使用 WebRTC 创建一个观看派对(类似于 Netflix 和 Amazon prime 提供的服务)。 I couldn't understand how can i show the local video file to all the users in a room.我无法理解如何向房间中的所有用户显示本地视频文件。 Also, how to synchronize the videos for the given room.此外,如何同步给定房间的视频。 For eg.例如。 if one pause/play or skip the video then for everyone in the room same operation should be performed in a near perfect sync.如果暂停/播放或跳过视频,那么对于房间中的每个人,都应该以近乎完美的同步执行相同的操作。
To start building with WebRTC from scratch, here are some things I've found helpful:要从头开始使用 WebRTC 构建,以下是我发现有用的一些内容:
awesome-webrtc
: a list of resources and docs awesome-webrtc
:资源和文档列表If you don't want to build from scratch, there are also several third-party libraries that have already built on top of WebRTC, so that devs don't have to.如果你不想从头开始构建,也有几个第三方库已经构建在 WebRTC 之上,这样开发人员就不必了。 Twilio , Agora , and Daily (full disclosure: where I work) all offer these kinds of solutions. Twilio 、 Agora和Daily (完全披露:我工作的地方)都提供了这些类型的解决方案。 Any of these might be helpful here.这些中的任何一个在这里可能会有所帮助。 Here's an example of how to stream a local video file into a call using Daily.下面是如何使用 Daily 将本地视频文件流式传输到通话中的示例。
I hope this helps, and good luck!我希望这个帮助能祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.