只读
RTCRtpTransceiver
接口的
mid
property specifies the negotiated media ID (
mid
) which the local and remote peers have agreed upon to uniquely identify the stream's pairing of sender and receiver.
var mediaID = RTCRtpTransceiver.mid;
A
DOMString
which uniquely identifies the pairing of source and destination of the transceiver's stream. Its value is taken from the media ID of the SDP m-line. This value is
null
if negotiation has not completed.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCRtpTransceiver.mid' in that specification. |
候选推荐 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
mid
|
Chrome 69 | Edge 不支持 No | Firefox 59 | IE 不支持 No | Opera 不支持 No | Safari Yes | WebView Android 69 | Chrome Android 69 | Firefox Android 59 | Opera Android 不支持 No | Safari iOS Yes | Samsung Internet Android 10.0 |
完整支持
不支持
RTCRtpTransceiver
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent