This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.
Draft
This page is not complete.
The trackDefaults
property of the SourceBuffer
interface specifies the default values to use if kind, label, and/or language information is not available in the initialization segment of the media to be appended to the SourceBuffer
.
Syntax
var myTrackDefaults = sourceBuffer.trackDefaults; sourceBuffer.trackDefaults = myTrackDefaultList;
Value
A TrackDefaultList
object.
Errors
The following errors may be thrown when setting a new value for this property.
Error | Explanation |
---|---|
InvalidStateError |
One or more of the SourceBuffer objects in MediaSource.sourceBuffers are being updated (i.e. their SourceBuffer.updating property is currently true ), or this SourceBuffer has been removed from the MediaSource . |
Example
TBD
Specifications
Specification | Status | Comment |
---|---|---|
Media Source Extensions The definition of 'trackDefaults' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | ? | Not supported | ? | ? | ? |
Feature | Android | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? |
Not supported |
Not supported | ? | ? | Not supported |
See also
Document Tags and Contributors
Tags:
Contributors to this page:
chrisdavidmills
Last updated by:
chrisdavidmills,