Files
v10/dist/dev/media/dom/mse/append-segment.d.ts
T

18 lines
797 B
TypeScript

import { SegmentData } from "../../types/index.js";
//#region src/media/dom/mse/append-segment.d.ts
/** Data accepted by appendSegment — the MSE-boundary alias of {@link SegmentData}. */
type AppendData = SegmentData;
/**
* Append media data to a SourceBuffer.
*
* Accepts either a full ArrayBuffer (single append) or an AsyncIterable of
* Uint8Array chunks (one append per chunk, in order). Waits for `updateend`
* between each call so appends are serialized correctly.
*
* Errors from the SourceBuffer (`error` event) or from the iterable are
* propagated as rejections.
*/
declare function appendSegment(sourceBuffer: SourceBuffer, data: AppendData, signal?: AbortSignal): Promise<void>;
//#endregion
export { AppendData, appendSegment };
//# sourceMappingURL=append-segment.d.ts.map