只读 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.
候选推荐

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
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

图例

完整支持

完整支持

不支持

不支持

另请参阅

元数据

  • 最后修改: