The read-only AudioTrack
property sourceBuffer
returns the SourceBuffer
that created the track, or null if the track was not created by a SourceBuffer
or the SourceBuffer
has been removed from the MediaSource.sourceBuffers
attribute of its parent media source.
Syntax
var sourceBuffer = AudioTrack.sourceBuffer;
Value
A SourceBuffer
or null.
Specifications
Specification | Status | Comment |
---|---|---|
Media Source ExtensionsThe definition of 'AudioTrack: sourceBuffer' in that specification. | Recommendation |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
sourceBuffer
|
Chrome Full support 51 Full support 51 Disabled' From version 51: this feature is behind the |
Edge Full support 79 Full support 79 Disabled' From version 79: this feature is behind the |
Firefox
No support No |
IE
Full support 11 |
Opera Full support 38 Full support 38 Disabled' From version 38: this feature is behind the |
Safari
Full support 6.1 |
WebView Android
No support No |
Chrome Android Full support 51 Full support 51 Disabled' From version 51: this feature is behind the |
Firefox Android
No support No |
Opera Android Full support 41 Full support 41 Disabled' From version 41: this feature is behind the |
Safari iOS
Full support 7 |
Samsung Internet Android
No support No |
Legend
- Full support
- Full support
- No support
- No support
- User must explicitly enable this feature.'
- User must explicitly enable this feature.
AudioTrack.sourceBuffer by Mozilla Contributors is licensed under CC-BY-SA 2.5.