封面
1.介绍
2.一致性
3.术语
4. 对等连接
4.1 介绍
4.2 配置
4.2.1 RTCConfiguration字典
4.2.2 RTCIceCredentialType枚举值
4.2.3 RTCOAuthCredential字典
4.2.4 RTCIceServer字典
4.2.5 RTCIceTransportPolicy枚举值
4.2.6 RTCBundlePolicy枚举值
4.2.7 RTCRtcpMuxPolicy枚举值
4.2.8 邀请/应答选项
4.3 状态定义
4.3.1 RTCSignalingState枚举值
4.3.2 RTCIceGatheringState枚举值
4.3.3 RTCPeerConnectionState枚举值
4.3.4 RTCIceConnectionState枚举值
4.4 RTCPeerConnection接口
4.4.1 操作
4.4.1.1 构造函数
4.4.1.2 操作入队
4.4.1.3 更新连接状态
4.4.1.4 更新ICE收集状态
4.4.1.5 更新ICE连接状态
4.4.1.6 设置RTCSessionDescription
4.4.1.7 设置配置
4.4.2 接口定义
4.4.3 旧版接口扩展
方法扩展
旧版配置扩展
4.4.4 垃圾回收
4.5 错误处理
4.5.1 通用原则
4.6 会话描述模型
4.6.1 RTCSdpType
4.6.2 RTCSessionDescription类
4.7 会话协商模型
4.7.1 设置是否需要协商标记位
4.7.2 清除是否需要协商标记位
4.7.3 更新是否需要协商标记位
4.8 连接建立接口
4.8.1 RTCIceCandidate接口
4.8.1.1 candidate-attribute语法
4.8.1.2 RTCIceProtocal枚举
4.8.1.3 RTCIceTcpCandidateType枚举
4.8.1.4 RTCIceCandidateType枚举
4.8.2 RTCPeerConnectionIceEvent
4.8.3 RTCPeerConnectionIceErrorEvent
4.9 优先级和服务质量(QoS)模型
4.9.1 RTCPriorityType枚举
4.10 证书管理
4.10.1 RTCCertificateExpiration字典
4.10.2 RTCCertificate接口
5. RTP媒体API
5.1 RTCPeerConnection接口扩展
5.1.1 处理远程媒体流轨
5.2 RTCRtpSender接口
5.2.1 RTCRtpParameters字典
5.2.2 RTCRtpSendParameters字典
5.2.3 RTCRtpReceiveParameters字典
5.2.4 RTCRtpCodingParameters字典
5.2.5 RTCRtpDecodingParameters字典
5.2.6 RTCRtpEncodingParameters字典
5.2.7 RTCDtxStatus枚举
5.2.8 RTCDegradationPreference枚举
5.2.9 RTCRtcpParameters字典
5.2.10 RTCRtpHeaderExtensionParameters字典
5.2.11 RTCRtpCodecParameters字典
5.2.12 RTCRtpCapabilities字典
5.2.13 RTCRtpCodecCapability字典
5.2.14 RTCRtpHeaderExtensionCapability字典
5.3 RTCRtpReceiver接口
5.4 RTCRtpTransceiver接口
5.4.1 联播功能
5.4.1.1 编码参数样例
5.4.2 "暂停"功能
5.5 RTCDtlsTransport接口
5.5.1 RTCDtlsFingerprint字典
5.6 RTCIceTransport接口
5.6.1 RTCIceParameters字典
5.6.2 RTCIceCandidatePair字典
5.6.3 RTCIceGathererState枚举
5.6.4 RTCIceTransportState枚举
5.6.5 RTCIceRole枚举
5.6.6 RTCIceComponent枚举
5.7 RTCTrackEvent
6. 点对点数据API
6.1 RTCPeerConnection接口扩展
6.1.1 RTCSctpTransport接口
6.1.1.1 创建实例
6.1.1.2 更新消息大小的最大值
6.1.1.3 连接过程
6.1.2 RTCSctpTransportState枚举
6.2 RTCDataChannel
6.3 RTCDataChannelEvent
6.4 垃圾回收
7. 点对点DTMF
7.1 RTCRtpSender接口扩展
7.3 RTCDTMFSender
7.3 canInsertDTMF算法
7.4 RTCDTMFToneChangeEvent
8. 统计模型
8.1 介绍
8.2 RTCPeerConnection接口扩展
8.3 RTCStatsReport对象
8.4 RTCStats字典
8.5 RTCStatsEvent
8.6 统计信息选择算法
8.7 强制实施统计数据
8.8 GetStats例子
9. 用于网络的Medis Stream API扩展
9.1 介绍
9.2 MediaStream
9.2.1 id
9.3 MediaStreamTrack
9.3.1 MediaTrackSupportedConstraints, MediaTrackCapabilities, MediaTrackConstraints及MediaTrackSettings
10. 例子与调用流程
10.1 简易的点对点示例
10.2 进阶的点对点示例-热身
10.3 点对点传输示例-媒体数据先于信号
10.4 联播示例
10.5 点对点数据示例
10.6 浏览器间的调用流程
10.7 DTMF示例
11. 错误处理
11.1 ECMAScript 6术语
11.2 RTCError对象
11.2.1 RTCError构造函数
11.2.1.1 RTCErrorDetailType枚举
11.2.1.2 RTCError(errorDetail, message)
11.2.2 RTCError构造函数的属性
11.2.2.1 RTCError.prototype
11.2.3 RTCError原型对象属性
11.2.3.1 RTCError.prototype.constructor
11.2.3.2 RTCError.prototype.errorDetail
11.2.3.3 RTCError.prototype.sdpLineNumber
11.2.3.4 RTCError.prototype.httpRequestStatusCode
11.2.3.5 RTCError.prototype.sctpCauseCode
11.2.3.6 RTCError.prototype.receivedAlert
11.2.3.7 RTCError.prototype.sentAlert
11.2.3.8 RTCError.prototype.message
11.2.3.9 RTCError.prototype.name
11.2.4 RTCError实例的属性
12. 事件摘要
13. 隐私与安全考量
13.1 对同源策略的影响
13.2 泄露IP地址
13.3 对本地网络的影响
13.4 通信保密性
13.5 WebRTC公开的持久性信息
A. 致谢
B. 参考文献
B.1 规范性参考文献
B.2 非规范性参考文献