The optional property sdpMLineIndex
in the RTCIceCandidateInit
dictionary specifies the value of the RTCIceCandidate
object's sdpMLineIndex
property.
Value
A number containing a 0-based index into the set of m-lines providing media descriptions, indicating which media source is associated with the candidate, or null
if no such association is available.
Note: Attempting to add a candidate (using addIceCandidate()
) that has a value of null
for either sdpMid
or sdpMLineIndex
will throw a TypeError
exception.
Example
...
Specifications
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCIceCandidateInit.sdpMLineIndex' in that specification. | Candidate Recommendation | Initial specification. |
Browser compatibility
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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
sdpMLineIndex
|
Chrome
Full support Yes |
Edge
Full support ≤18 |
Firefox
Full support 22 |
IE
No support No |
Opera
Full support Yes |
Safari
? |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
? |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
See also
- WebRTC API
RTCIceCandidate.sdpMLineIndex
RTCPeerConnection.addIceCandidate()
icecandidate
- Lifetime of a WebRTC session
RTCIceCandidateInit.sdpMLineIndex by Mozilla Contributors is licensed under CC-BY-SA 2.5.