Skip to content

Function: parseRoomfulRecording()

@roomful/core


@roomful/core / parseRoomfulRecording

parseRoomfulRecording(value): RoomfulRecording | null

Defined in: packages/core/src/engines/recording.ts:31

Parses and validates a value loaded from a .roomful file (e.g. JSON.parse(fileText)) into a RoomfulRecording, or returns null when it is malformed or an unsupported version — so a bad or incompatible file can never be handed to RecordingEngine.replay. Each frame’s signal is validated through the same transport-signal parser the live wire path uses.

unknown

The parsed JSON value from a .roomful file.

RoomfulRecording | null

The validated recording, or null.