跳转到内容

VideoStreamHandle

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

Defined in: video/PlatformVideoBackend.ts:7

readonly optional bytes?: number

Defined in: video/PlatformVideoBackend.ts:13


readonly currentTime: number

Defined in: video/PlatformVideoBackend.ts:16


readonly duration: number

Defined in: video/PlatformVideoBackend.ts:17


readonly height: number

Defined in: video/PlatformVideoBackend.ts:12


readonly id: number

Defined in: video/PlatformVideoBackend.ts:8


readonly isPlaying: boolean

Defined in: video/PlatformVideoBackend.ts:15


readonly isReady: boolean

Defined in: video/PlatformVideoBackend.ts:14


optional onEnded?: () => void

Defined in: video/PlatformVideoBackend.ts:34

void


optional onError?: (error) => void

Defined in: video/PlatformVideoBackend.ts:35

unknown

void


optional onReady?: () => void

Defined in: video/PlatformVideoBackend.ts:33

void


readonly textureHandle: number

Defined in: video/PlatformVideoBackend.ts:10

Frame texture handle; 0 until isReady. Pathless (never evicted).


readonly width: number

Defined in: video/PlatformVideoBackend.ts:11

pause(): void

Defined in: video/PlatformVideoBackend.ts:20

void


play(): void

Defined in: video/PlatformVideoBackend.ts:19

void


pump(module): void

Defined in: video/PlatformVideoBackend.ts:31

ESEngineModule | null

the wasm engine module, or null on a core with no heap — the texture upload takes bytes directly there.

void


seek(timeSeconds): void

Defined in: video/PlatformVideoBackend.ts:22

number

void


setLoop(loop): void

Defined in: video/PlatformVideoBackend.ts:25

boolean

void


setMuted(muted): void

Defined in: video/PlatformVideoBackend.ts:24

boolean

void


setPlaybackRate(rate): void

Defined in: video/PlatformVideoBackend.ts:26

number

void


setVolume(volume): void

Defined in: video/PlatformVideoBackend.ts:23

number

void


stop(): void

Defined in: video/PlatformVideoBackend.ts:21

void