Skip to content

PlatformScreenRecorder

Defined in: platform/types.ts:734

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: platform/types.ts:738

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


readonly limits: object

Defined in: platform/types.ts:736

The recording length the host accepts, in seconds.

readonly maxSeconds: number

readonly minSeconds: number

abort(): Promise<void>

Defined in: platform/types.ts:745

Promise<void>


highlight(beforeSeconds, afterSeconds): void

Defined in: platform/types.ts:747

Keep beforeSeconds before now and afterSeconds after it for sharing.

number

number

void


pause(): Promise<void>

Defined in: platform/types.ts:742

Promise<void>


resume(): Promise<void>

Defined in: platform/types.ts:743

Promise<void>


share(recording, options): Promise<void>

Defined in: platform/types.ts:749

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

PlatformRecording

PlatformRecordingShareOptions

Promise<void>


start(maxSeconds, onFailure): Promise<void>

Defined in: platform/types.ts:741

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: platform/types.ts:744

Promise<PlatformRecording>