WebRTC on a standalone mobile app

后端 未结 16 2189
一个人的身影
一个人的身影 2021-01-30 09:42

I know that WebRTC was designed for browsers, but is it possible to use WebRTC libraries on mobile applications directly?

Thanks!

16条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 10:06

    You could use WebRTC with native apps, but it requires a bit of work. WebRTC Native app anatomy

    If you look at the image you can see a red rectangle at the bottom. That's the native C++ libraries of WebRTC. The WebRTC classes and WebRTC objects for audio and Video can also be found as part of the WebRTC project.What you would need to add is an API for your app to be able to setup calls(The VOIP interface), a signaling stack and NAT traversal utilities(Core Protocol- For SIP this could be something like PJSIP and PJNATH) and an adapter from your signaling stack to webrtc, telling it when to open channels for video and audio and when to stop them etc.

    See also: http://bloggeek.me/porting-webrtc-mobile/

提交回复
热议问题