Skip to content

PlatformScreenRecorder

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

The host’s game-screen recorder, one per host (both vendors hand out a singleton). Every call resolves when the host says the thing happened, not when it was asked: otherwise a refused start shows “recording” over nothing.

readonly canShare: boolean

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

Whether a finished recording can be shared from here at all.


readonly limits: object

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

The recording length the host accepts, in seconds.

readonly maxSeconds: number

readonly minSeconds: number

abort(): Promise<void>

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

Promise<void>


highlight(beforeSeconds, afterSeconds): void

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

Keep beforeSeconds before now and afterSeconds after it for sharing.

number

number

void


pause(): Promise<void>

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

Promise<void>


resume(): Promise<void>

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

Promise<void>


share(recording, options): Promise<void>

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

Both hosts refuse unless this runs inside the player’s tap.

PlatformRecording

PlatformRecordingShareOptions

Promise<void>


start(maxSeconds, onFailure): Promise<void>

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

onFailure hears a failure after the start was accepted — the recording is gone when it is called.

number

(error) => void

Promise<void>


stop(): Promise<PlatformRecording>

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

Promise<PlatformRecording>