feat(voice-engine): add a sourceLifecycle.removed event (#2374)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-02 17:30:08 +02:00
1 parent 626293392c
commit 02069e8e5d
6 files changed
+62 -3

No files matched your search

@@ -15,6 +15,11 @@ export interface VoiceEngineV2SourceLifecycleTransitionedEvent {
atMs: number;
}
export interface VoiceEngineV2SourceLifecycleRemovedEvent {
type: 'sourceLifecycle.removed';
sourceId: string;
}
import type {
VoiceEngineV2AudioControlsPatch,
VoiceEngineV2CameraEncodingOptions,
@@ -264,4 +269,5 @@ export type VoiceEngineV2Event =
| {type: 'inboundVideo.trackUnsubscribed'; trackSid: string}
| {type: 'inboundVideo.frameReceived'; frame: VoiceEngineV2InboundVideoFrame}
| {type: 'inboundVideo.frameStats'; stats: VoiceEngineV2InboundVideoFrameStats}
| VoiceEngineV2SourceLifecycleTransitionedEvent;
| VoiceEngineV2SourceLifecycleTransitionedEvent
| VoiceEngineV2SourceLifecycleRemovedEvent;
@@ -9,6 +9,7 @@ export type {VoiceEngineV2Command, VoiceEngineV2CommandType} from './commands';
export {getVoiceEngineV2CommandResourceKey, getVoiceEngineV2CommandTypeResourceKey} from './commands';
export type {
VoiceEngineV2Event,
VoiceEngineV2SourceLifecycleRemovedEvent,
VoiceEngineV2SourceLifecycleTransitionedEvent,
VoiceEngineV2SourceLifecycleTransitionKind,
} from './events';