calm-jackal-66534
07/23/2025, 8:52 AMtall-airline-16756
07/23/2025, 8:52 AMtall-airline-16756
07/23/2025, 8:52 AMisRecording property:
The Room object has an isRecording property that returns true if the room is currently being recorded.
const isCurrentlyRecording = room.isRecording;
• Listen for recording status changes:
You can subscribe to the RecordingStatusChanged event to get real-time updates when recording starts or stops.
room.on(RoomEvent.RecordingStatusChanged, (isRecording) => {
// Handle status change
});
• Use the observable pattern (if using LiveKit Components):
The recordingStatusObservable(room) function provides a stream of recording status changes.
const recordingObservable = recordingStatusObservable(room);
recordingObservable.subscribe(isRecording => {
// Handle status change
});
These methods allow your Unity WebGL client to detect and respond to recording status in real time.
Sources: src/room/events.ts | packages/core/src/observables/room.tscalm-jackal-66534
07/23/2025, 8:54 AMtall-airline-16756
07/23/2025, 8:55 AMcalm-jackal-66534
07/23/2025, 9:08 AM