SourceBuffer.appendStream()

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 appendStream() method of the SourceBuffer interface appends media segment data from a ReadableStream object to the SourceBuffer.

Syntax

sourceBuffer.appendStream(stream, maxSize);

Parameters

stream
The ReadableStream that is the source of the media segment data you want to append to the SourceBuffer.
maxSize
An unsigned long value indicating the maximum number of bytes that can be appended in this operation.

Return value

undefined.

Exceptions

None.

Example

TBD.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
appendStream
DeprecatedNon-standard
Chrome No support NoEdge No support 12 — 79Firefox No support NoIE ? Opera No support NoSafari ? WebView Android ? Chrome Android ? Firefox Android No support NoOpera Android ? Safari iOS No support NoSamsung Internet Android ?

Legend

No support
No support
Compatibility unknown
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

See also