mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
18 lines
797 B
TypeScript
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
|