值
该值是一个包含 SDP 消息的字符串,如下所示:
v=0 o=alice 2890844526 2890844526 IN IP4 host.anywhere.com s= c=IN IP4 host.anywhere.com t=0 0 m=audio 49170 RTP/AVP 0 a=rtpmap:0 PCMU/8000 m=video 51372 RTP/AVP 31 a=rtpmap:31 H261/90000 m=video 53000 RTP/AVP 32 a=rtpmap:32 MPV/90000
示例
js
// The remote description has been set previously on pc, an RTCPeerConnection
alert(pc.remoteDescription.sdp);
规范
| 规范 |
|---|
| WebRTC:浏览器中的实时通信 # dom-rtcsessiondescription-sdp |
浏览器兼容性
加载中…