WebRTC中SDP解释

v=0 版本号
o=-(名字) 3458751454258760918(sessionid) 2 版本 IN (internet)IP4 127.0.0.1
s=- (session 名称)
t=0 0 一直不结束

a=group:BUNDLE 0 
# 有一个流进行绑定 只有一个流 

a=extmap-allow-mixed
#
a=msid-semantic: WMS ku3sgWrqwDQ689uflrNKrt7ggH804ajCzAEn
# media stream id  标识  webrtc media stream id

m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 121 127 120 125 107 108 109 35 36 124 119 123
# 视频  特殊含义 拒绝 9  udp rtp tls 交换证书 加密 scrite av protocal family

c=IN IP4 0.0.0.0
# 连接 internte 地址 任一地址

a=rtcp:9 IN IP4 0.0.0.0
# rtcp 9 

a=ice-ufrag:ePBK
a=ice-pwd:j27V+LVNs/RP4gJcl3izC+hS
# 由于ice 检查有效性

a=ice-options:trickle
# 现在先不收集 在后面逐渐收集 一个一个增加 做替换

a=fingerprint:sha-256 73:31:42:FC:91:07:C0:7C:A4:9F:AF:37:19:11:48:4F:3A:54:95:96:1C:9E:52:FD:9D:F3:2A:55:B1:3D:71:BB
# hash 值 指纹 传给对方 进行匹配 可信任的 拒绝非法

a=setup:actpass
# actpass 可服务可客户由answer选择 媒体协商 passive active
a=mid:0
# 媒体描述

a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 urn:3gpp:video-orientation
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
# 说明而已 没具体含义 

a=sendrecv
# 即可发送也可接受

a=msid:ku3sgWrqwDQ689uflrNKrt7ggH804ajCzAEn 1554debe-a03f-4d79-a0cf-6537eb25571c
# media 没太多意义

a=rtcp-mux
# 复用端口
a=rtcp-rsize
# 回的消息能不能减少 带宽评估请求完整帧 可不送一些数据

a=rtpmap:96 VP8/90000
# vp8 采用率时钟 90000

a=rtcp-fb:96 goog-remb
# 接收端带宽评估

a=rtcp-fb:96 transport-cc
# 传输带 transport-cc

a=rtcp-fb:96 ccm fir
# 编码控制 回馈消息  完整的内部帧 rtcp fir 完整的内部帧

a=rtcp-fb:96 nack
# 应答 重传

a=rtcp-fb:96 nack pli
# pli 代表pic 再请求一个完整的帧

a=rtpmap:97 rtx/90000
# 丢包重传
a=fmtp:97 apt=96
# 97是96 的重传

a=rtpmap:98 VP9/90000
# vp9

a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:121 rtx/90000
a=fmtp:121 apt=102
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:120 rtx/90000
a=fmtp:120 apt=127
a=rtpmap:125 H264/90000
a=rtcp-fb:125 goog-remb
a=rtcp-fb:125 transport-cc
a=rtcp-fb:125 ccm fir
a=rtcp-fb:125 nack
a=rtcp-fb:125 nack pli
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=125
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:35 AV1X/90000
a=rtcp-fb:35 goog-remb
a=rtcp-fb:35 transport-cc
a=rtcp-fb:35 ccm fir
a=rtcp-fb:35 nack
a=rtcp-fb:35 nack pli
a=rtpmap:36 rtx/90000
a=fmtp:36 apt=35
a=rtpmap:124 red/90000
# 冗余包  ulpefec flaxfec

a=rtpmap:119 rtx/90000
a=fmtp:119 apt=124
a=rtpmap:123 ulpfec/90000

a=ssrc-group:FID 1630256866 1354602413
a=ssrc:1630256866 cname:5OA8tBvDbtmMzNDH
a=ssrc:1630256866 msid:ku3sgWrqwDQ689uflrNKrt7ggH804ajCzAEn 1554debe-a03f-4d79-a0cf-6537eb25571c
a=ssrc:1630256866 mslabel:ku3sgWrqwDQ689uflrNKrt7ggH804ajCzAEn
a=ssrc:1630256866 label:1554debe-a03f-4d79-a0cf-6537eb25571c
a=ssrc:1354602413 cname:5OA8tBvDbtmMzNDH
a=ssrc:1354602413 msid:ku3sgWrqwDQ689uflrNKrt7ggH804ajCzAEn 1554debe-a03f-4d79-a0cf-6537eb25571c
a=ssrc:1354602413 mslabel:ku3sgWrqwDQ689uflrNKrt7ggH804ajCzAEn
a=ssrc:1354602413 label:1554debe-a03f-4d79-a0cf-6537eb25571c

猜你喜欢

转载自blog.csdn.net/qq_31231915/article/details/130032870