简体   繁体   English

如何使用 WebRTC 同步视频

[英]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 构建,以下是我发现有用的一些内容:

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. TwilioAgoraDaily (完全披露:我工作的地方)都提供了这些类型的解决方案。 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.

相关问题 如何同步HTML5视频? - How to get HTML5 videos in sync? 如何使用云在设备间同步时唯一标识媒体(图像,视频) - How to uniquely identify medias(images, videos) while sync across devices using cloud 如何同步网格中的 4 个视频以同时播放同一帧? - How do I sync 4 videos in a grid to play the same frame at the same time? 如何使用Microsoft Sync Framework与过滤器数据同步 - how to sync with filter data using Microsoft Sync Framework 如何使用Microsoft Sync Framework同步Web服务器和本地服务器 - How to sync a web server and a local using Microsoft Sync Framework 如何使用RxJava进行同步通话 - How to make a sync call using RxJava 如何在Active Sync中使用ItemOperation命令和文件引用来获取附件 - how to fetch attachment using ItemOperation command with file reference in Active Sync 如何确保使用Microsoft Sync Framework的同步成功? - How to make sure synchronization using the Microsoft Sync Framework was successful? 如何使用 powershell 配置 windows 以与已知 ip 连续同步时间 - How to configure windows to continuously sync time with a known ip using powershell 如何使用事件同步两个持续运行的线程? - how to sync two contantly running threads using event?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM