RTCError, RTCErrorEvent, RTCErrorEventInit
- Category
- JavaScript
- Type
- New or changed feature
- Status
- No active development (Chrome No active development)
- Intent stage
- None
Summary
The RTCError will be thrown by RTCPeerConnection.setLocal/RemoteDescription, RTCRtpSender.setParameters() and RTCDataChannel.onerror. Currently these APIs sometimes throw the wrong exception/error. The RTCError object provides additional information about an error, such as WebRTC-specific error codes or which line an SDP parsing error occurred.
Standards & signals
- Specification: https://w3c.github.io/webrtc-pc/#dfn-rtcerror
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://crbug.com/821806
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=rtcerror-rtcerrorevent-rtcerroreventinit
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+RTCError%2C%20RTCErrorEvent%2C%20RTCErrorEventInit
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=RTCError%2C%20RTCErrorEvent%2C%20RTCErrorEventInit
- Baseline status: https://webstatus.dev/?q=RTCError%2C%20RTCErrorEvent%2C%20RTCErrorEventInit