当前位置:网站首页>webrtc 1对1 -基本架构与目录
webrtc 1对1 -基本架构与目录
2022-07-23 23:51:00 【云霞川】
webrtc 1对1 -基本架构与目录
整体架构
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-LkyjOrBw-1658562722660)(file:///C:/Users/hch/AppData/Roaming/marktext/images/2022-07-23-15-28-57-image.png?msec=1658561342344)]](/img/47/508bd9f4668aef5cdbcb3368bcde25.png)
外层接口
外层接口是 使用应用 的人调用的,用javascript编写
内层接口
应用层可调用
主要包含四个部分
peerconnection 一对一连接,还包括传输质量报告,各种流,各种统计数据 等接口
设备管理
音视频数据采集
非音视频数据的传输
session
会话管理,连接配置信息,管理相关逻辑
核心层
包含 音频引擎
音频的采集和渲染
(1) 音频编解码
(2)音频缓冲
(3)音频的回音消除,去除噪音
包含 视频引擎
视频的采集(不包含渲染)
(1)视频编解码
(2)视频缓存
(3)图片处理
包含 传输
建立在UDP上
使用SRTP
多路复用
P2P相关协议
源码目录

![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-6HwW11TD-1658562722664)(file://C:\Users\hch\AppData\Roaming\marktext\images\2022-07-23-15-41-12-image.png?msec=1658562072367)]](/img/81/d4410a8b0fb6ef4299dcc1e0de0cb4.png)
运行机制
轨与流
轨之间相互不相交,指的是一路数据传输,如音频轨,视频轨
媒体流包含很多轨,音频轨,视频轨…
webrtc重要类
mediastream 装 媒体流
rtcpeerconnection 把 mediastream 装进 rtcpeerconnection 然后连接
rtcdatachannel 是 rtcpeerconnection获取的,它非音频数据传输
如下图
媒体流里包含各种轨
peerconnection 创建轨,流
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-gtSwtI9n-1658562722665)(file://C:\Users\hch\AppData\Roaming\marktext\images\2022-07-23-15-47-25-image.png?msec=1658562445779)]](/img/fb/0c62b8c00e262301072be2ed9c6c02.png)
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-fLGqJASu-1658562722665)(file://C:\Users\hch\AppData\Roaming\marktext\images\2022-07-23-15-49-32-image.png?msec=1658562572212)]](/img/7a/55bbeb603e06339615bee3151e3463.png)
边栏推荐
- jarvisoj_ level2
- warmup_csaw_2016
- 【攻防世界WEB】难度五星15分进阶题:bug
- 【微服务架构】分布式事务
- [three-year interview and five-year simulation] Dugu Jiujian secret script of Algorithm Engineer (first six style summary) V1 version
- No wonder the application effect of ERP in domestic enterprises is generally not ideal
- DDD思维架构学习
- jarvisoj_ level0
- Network security class assignment
- [SSM]前后台协议联调②
猜你喜欢

史上最全的2022年版Android面试题
![[CTF] Tiange team writeup - the first digital space security attack and defense competition (Preliminary)](/img/61/5547822b782043672b626f6b86d304.png)
[CTF] Tiange team writeup - the first digital space security attack and defense competition (Preliminary)

DGS之Mutations

Ubtun update source
![Longest increasing subsequence variant [deep understanding of the longest increasing sequence]](/img/73/1480ec319a2860fec5667d6f2fb2ba.png)
Longest increasing subsequence variant [deep understanding of the longest increasing sequence]

Stm32mp1 M4 bare metal cubeide Development Guide Chapter 6 stm32cube firmware package

ret2shellcode

ret2shellcode
solo 文章正文含有 <> 标签会影响到页面样式

PHP(2)
随机推荐
jarvisoj_level2
jarvisoj_level0
网上找客户经理办理基金开户安全吗??
Chapter 5: implementation of Web adapter
The QT creation window is blocked and cannot be displayed in time
Intel英特尔RealSense实感深度摄像头 自校准(Self-Calibration)操作步骤讲解 D400系列适用
[for loop if conditional statement] summary
Network security class assignment
Iptables prevent nmap scanning and binlog
浏览器无法访问minio
Analysis and resolution of slot conflict in solid delegatecall
C # introductory series (XXVIII) -- query syntax of LINQ
Operating system not found solution after importing ISO into virtual machine
Solo article body contains & lt; & gt; Labels affect page styles
史上最全的2022年版Android面试题
ciscn_ 2019_ n_ one
Regular expressions and bypass cases
【计算机三级信息安全】访问控制模型
Stm32mp1 M4 bare metal cubeide Development Guide Chapter 6 stm32cube firmware package
DGS之代码生成