对sdm.devices.commands.CameraLiveStream.GenerateWebRtcStream命令的请求会返回一个应答 SDP,其中包括一个数据传输部分,例如
m=application 9 DTLS/SCTP 5000
c=IN IP4 0.0.0.0
a=ice-ufrag:<redacted>
a=ice-pwd:<redacted>
a=fingerprint:sha-256 <redacted>
a=setup:passive
a=mid:2
a=sctpmap:5000 webrtc-datachannel 1024
请注意缺少 sctp-port 部分。相关的RFC规定:
没有为 SDP“sctp-port”属性定义默认值。
因此,如果该属性不存在,则
必须将关联的“m=”行视为无效。