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.
Syntax
track.onoverconstrained = function;
Values
- functionis 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.
Example
dc.onoverconstrained = function(ev) { alert("overconstrained event detected!"); };
Specifications
| Specification | Status | Comment | 
|---|---|---|
| Media Capture and Streams The definition of 'MediaStreamTrack.onoverconstrained' in that specification. | Editor's Draft | Initial specification. | 
Browser compatibility
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari | 
|---|---|---|---|---|---|---|
| Basic support | (Yes) | (Yes) | (Yes) | No support | (Yes) | ? | 
| Feature | Android | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | 
|---|---|---|---|---|---|---|---|
| Basic support | ? | ? | (Yes) | ? | No support | ? | ? | 
See also
- The overconstrainedevent and its type,MediaStreamErrorEvent.