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.
SyntaxEdit
track.onoverconstrained = function;
Values
function
is the name of a user-defined function, without the()
suffix or any parameters, or an anonymous function declaration, such asfunction(event) {...}
. An event handler always has one single parameter, containing the event, here of typeMediaStreamErrorEvent
.
ExampleEdit
dc.onoverconstrained = function(ev) { alert("overconstrained event detected!"); };
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
Media Capture and Streams The definition of 'MediaStreamTrack.onoverconstrained' in that specification. |
Candidate Recommendation | Initial specification. |
Browser compatibilityEdit
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | Not supported | (Yes) | ? |
See alsoEdit
- The
overconstrained
event and its type,MediaStreamErrorEvent
.