Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The type
read-only property of the TrackDefault
interface returns the type of track that this SourceBuffer
's media segment data relates to (i.e. audio, video, or text track.)
Syntax
var myType = TrackDefault.type;
Value
A DOMString
— one of audio
, video
or text
.
Example
TBD
Browser compatibility
BCD tables only load in the browser