The WebRTC Native APIs implementation is based on W3C’s WebRTC 1.0: Real-time Communication Between Browsers.

The code that implements WebRTC Native APIs (including the Stream and PeerConnection APIs) are available here. A sample client application is also provided.

The target audience of this document are those who want to use WebRTC Native APIs to implement WebRTC JavaScript APIs or to develop native RTC applications.

Block Diagram

Calling Sequences

Set up a call

Receive a Call

Close Down a Call

Threading Model

WebRTC Native APIs use two globally available threads: the signaling thread and the worker thread. Depending on how the PeerConnection factory is created, the application can either provide those two threads or just let them be created internally.

Calls to the Stream APIs and the PeerConnection APIs will be proxied to the signaling thread, which means that an application can call those APIs from whatever thread.

All callbacks will be made on the signaling thread. The application should return the callback as quickly as possible to avoid blocking the signaling thread. Resource-intensive processes should be posted to a different thread.

The worker thread is used to handle more resource-intensive processes, such as data streaming.

Reference

The current HTML5 specification for WebRTC: http://w3c.github.io/webrtc-pc/

The source code of the WebRTC Native API: https://webrtc.googlesource.com/src/+/master/api

Complete list of directories that contain API files: https://webrtc.googlesource.com/src/+/master/native-api.md

Client and server sample apps: https://webrtc.googlesource.com/src/+/master/examples

最新文章

  1. js中constructor和prototype
  2. Javascript学习笔记:闭包题解(4)
  3. MySQL MHA配置
  4. macbook pro install ubuntu
  5. [Unity3D]Unity3D持久性数据的游戏开发PlayerPrefs采用
  6. GCD系列 之(一):基本概念和Dispatch Queue
  7. Android ListView 无法响应onItemClick事件
  8. stock 财务 指标
  9. 微信小程序t填坑之旅一(接入)
  10. 关于Java中Eclipse运行卡顿、未响应,Cpu100%的快速处理办法
  11. Spring Boot 引入自定义yml
  12. ps命令手册
  13. jQuery学习之旅 Item10 ajax快餐
  14. postman-----使用CSV和Json文件实现批量接口测试
  15. iphone X 底部留白 之 ionic3 项目
  16. Java关键字(三)——static
  17. 将网站项目转为 Web form应用程序(转)
  18. 实验吧—Web——WP之 FALSE
  19. Maven的dependency type属性
  20. J03-Java IO流总结三 《 FileInputStream和FileOutputStream 》

热门文章

  1. bzoj1202: [HNOI2005]狡猾的商人(差分约束)
  2. CoreData 从入门到精通(五)CoreData 和 TableView 结合
  3. 关于输入getline
  4. js函数 DOM操作
  5. IP地址的正则表达式写法
  6. 移动端font-size适配
  7. Matlab--从入门到精通(chapter2 matlab 基础知识)
  8. Golang 中的 面向对象: 方法, 类, 方法继承, 接口, 多态的简单描述与实现
  9. Vue学习之v-if与v-show的区别
  10. 紫书 习题11-11 UVa 1644 (并查集)