跳转到内容

VideoFrameDecodeSession

此内容尚不支持你的语言。

Defined in: media/src/mediabunny-adapter.ts:833

A bounded, persistent video decoder session.

Sequential requests share one Input, decoder and packet iterator. Backward seeks and large forward jumps restart at the nearest verified key packet. Returned frames are caller-owned; cached frames remain session-owned.

new VideoFrameDecodeSession(reader, index, options): VideoFrameDecodeSession

Defined in: media/src/mediabunny-adapter.ts:858

RangeReader

SampleIndex

VideoFrameDecodeSessionOptions = {}

VideoFrameDecodeSession

dispose(): void

Defined in: media/src/mediabunny-adapter.ts:926

void


frameAt(targetUs, signal?): Promise<VideoDecodeResult>

Defined in: media/src/mediabunny-adapter.ts:886

number

AbortSignal

Promise<VideoDecodeResult>


snapshot(): VideoFrameDecodeSessionSnapshot

Defined in: media/src/mediabunny-adapter.ts:908

VideoFrameDecodeSessionSnapshot