The MediaStreamTrack.onoverconstrained
event handler is a property called when the overconstrained
event is received. Such an event is sent when the track is again able to send data.
track.onoverconstrained = function;
function
is the name of a user-defined function, without the ()
suffix or any parameters, or an anonymous function declaration, such as function(event) {...}
. An event handler always has one single parameter, containing the event, here of type MediaStreamErrorEvent
.dc.onoverconstrained = function(ev) { alert("overconstrained event detected!"); };
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStreamTrack.onoverconstrained' in that specification. | Candidate Recommendation | Initial specification. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | Yes | 12 | Yes | No | Yes | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | Yes | Yes | ? | ? | ? | Yes |
overconstrained
event and its type, MediaStreamErrorEvent
.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onoverconstrained