如何为创建 1 对 1 呼叫(视频和音频)的 iOS 移动应用程序实现 webRTC? [英] How to implement webRTC for iOS mobile app creating 1 to 1 Call (Video and Audio)?

查看:23
本文介绍了如何为创建 1 对 1 呼叫(视频和音频)的 iOS 移动应用程序实现 webRTC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 webRTC 开发 iOS 视频应用程序,我开发了用于房间视频通话的应用程序,因为我有一个名为 AppRTC 的演示.

I am developing an iOS Video application with webRTC, I have developed application for room video call as i got a demo named AppRTC.

但问题是,当且仅当我们知道房间名称时,我们才能连接.

But the problem is, we can connect if and only if we know the room name.

有关使用 webRTC 创建 1-1 视频的任何帮助和建议.

Any help and suggestion for creating 1-1 Video with webRTC.

实际上,我没有找到在两个用户之间创建信令的正确方法.我想开发像 Whatsapp、facebook 和 Hangout 一对一视频通话的视频通话.

Actually, i am not getting the proper way to create Signaling between two users. I want to develop video call like Whatsapp,facebook and Hangout one to one video call.

我已关注此 GitHub 上的 AppRTC 演示代码 演示代码.

I have followed this AppRTC Demo Code On GitHub demo code.

提前致谢

推荐答案

您可以使用幕后的房间"方法在两个用户之间实现 WhatsApp 风格的视频通话.

You can implement a WhatsApp-style video call between two users using the "room" approach behind the scenes.

  • 假设用户 1 想要呼叫用户 2.
  • 在用户 1 的设备上运行的应用会生成一个随机房间名称并加入该房间.
  • 用户 1 的应用还会将房间名称传达给用户 2 的设备.
  • 用户 2 设备上的应用显示来电提醒.
  • 如果用户 2 点按接听"按钮,应用会加入房间并开始与用户 1 的通话.
  • 不需要向任何用户显示用于呼叫的实际房间名称.

这篇关于如何为创建 1 对 1 呼叫(视频和音频)的 iOS 移动应用程序实现 webRTC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆