The RTCError interface's read-only property sdpLineNumber specifies the line number within the SDP at which a syntax error occurred while parsing it.


let errorLineNumber = rtcError.sdpLineNumber;


An unsigned integer value indicating the line within the SDP at which the syntax error described by the RTCError object occurred. The lines are numbed starting with line 1.

This property is null unless the value of errorDetail is sdp-syntax-error.


Specification Status Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCError.sdpLineNumber' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser