跳转到内容

PlatformRecording

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

Defined in: sdk/src/platform/types.ts:766

A finished recording. What it carries depends on who keeps the video: WeChat keeps it to itself and shares it on the game’s behalf, Douyin hands over a temp file, a browser hands over the encoded bytes.

readonly optional blob?: Blob

Defined in: sdk/src/platform/types.ts:771

The encoded video (web) — a debug preview, not something a host can share.


readonly durationMs: number

Defined in: sdk/src/platform/types.ts:767


readonly highlights: readonly (readonly [number, number])[]

Defined in: sdk/src/platform/types.ts:773

Highlight ranges in ms from the start of the recording, merged and in order.


readonly optional path?: string

Defined in: sdk/src/platform/types.ts:769

The host’s temp file for the video (Douyin).