sequenceDiagram
par
Server-->>Browser: sending offer
Browser->>Browser: subpc.setRemoteDescription
and
and
Server-->>Browser: sending trickle * n
Browser->>Browser: add to queue
end
Browser->>Browser: subpc.addIceCandidate * n
Browser->>Browser: subpc.setLocalDescription
Browser-->>Server: sending answer
rect rgb(191, 223, 255)
Browser->>Browser: pubpc.onconnectionstatechange(connecting)
Browser->>Browser: subpc.onicecandidate
Browser-->>Server: sending trickle
end
rect rgb(191, 223, 255)
Browser->>Browser: pubpc.onconnectionstatechange(connected)
end
sdp
o=sessionId sessionVersion ipCreatedSDP
a=group:BUNDLE --- establishes a relationship between several media lines included in the SDP
a=msid-semantic WMS
m= meida line
c= ---- my ip
a=rtcp --- rtcp uses port
a=candidate: 1/2 [rtp/rtcp] udp [priority]
a=extmap
建链流程
sdp
不懂的sdp
https://blog.csdn.net/china_jeffery/article/details/79991986
Rtcp信息
Chrome作为发送方,会发送:
Chrome作为接收方:
svc
Sender
gen timestampCongestion Control
Other
dtls
pion作为client的cipher suite:
Arch
References
Book
RFCs
Proposal
Standards
Urls
Codes