Skip to content

Interface: RecordingEngine

@roomful/vue


@roomful/vue / RecordingEngine

Defined in: core/dist/types.d.ts:2115

Records a room’s wire signals for later inspection and timed replay.

A recording is local: it logs the signals this peer sends and receives, never touching the shared document and never syncing to other peers. Capture is gated by start()/stop(); replay re-emits the captured frames at their original tempo without re-applying them to a room.

export(): RoomfulRecording

Defined in: core/dist/types.d.ts:2125

Serializes the current take into a portable RoomfulRecording.

RoomfulRecording


getFrames(): RecordingFrame[]

Defined in: core/dist/types.d.ts:2123

Returns a copy of the frames captured so far.

RecordingFrame[]


getState(): RecordingState

Defined in: core/dist/types.d.ts:2121

Returns the current recorder state (recording flag, frame count, span).

RecordingState


ingest(direction, signal): void

Defined in: core/dist/types.d.ts:2150

Ingests a wire signal from the room runtime. The room calls this at its transport boundary; it is a no-op unless recording. Not for application use.

RecordingDirection

Whether the signal was received or sent.

PeerWireMessage

The wire signal captured at the boundary.

void

Nothing.


replay(recording?): ReplaySession

Defined in: core/dist/types.d.ts:2133

Builds a timed playback session for a recording, or for the current take when none is given.

RoomfulRecording

The recording to replay; defaults to the current take.

ReplaySession

A playback session.


start(): void

Defined in: core/dist/types.d.ts:2117

Begins capturing wire signals, discarding any previous take.

void


stop(): void

Defined in: core/dist/types.d.ts:2119

Stops capturing. The captured frames remain available.

void


subscribe(callback): Unsubscribe

Defined in: core/dist/types.d.ts:2141

Subscribes to recorder state changes (start/stop and each captured frame). Fires immediately with the current state.

(state) => void

The callback invoked with the latest state.

Unsubscribe

A function that removes the listener.