@@ -74,8 +74,8 @@ type ConversationStateConnecting = ConversationStateCommon & {
7474 isReconnecting : false ;
7575
7676 local : {
77- camera : TrackReferencePlaceholder ;
78- microphone : TrackReferencePlaceholder ;
77+ cameraTrack : TrackReferencePlaceholder ;
78+ microphoneTrack : TrackReferencePlaceholder ;
7979 } ;
8080} ;
8181
@@ -85,8 +85,8 @@ type ConversationStateConnected = ConversationStateCommon & {
8585 isReconnecting : boolean ;
8686
8787 local : {
88- camera : TrackReferenceOrPlaceholder ,
89- microphone : TrackReferenceOrPlaceholder ,
88+ cameraTrack : TrackReferenceOrPlaceholder ,
89+ microphoneTrack : TrackReferenceOrPlaceholder ,
9090 } ;
9191} ;
9292
@@ -96,8 +96,8 @@ type ConversationStateDisconnected = ConversationStateCommon & {
9696 isReconnecting : false ;
9797
9898 local : {
99- camera : TrackReferencePlaceholder ;
100- microphone : TrackReferencePlaceholder ;
99+ cameraTrack : TrackReferencePlaceholder ;
100+ microphoneTrack : TrackReferencePlaceholder ;
101101 } ;
102102} ;
103103
@@ -214,8 +214,8 @@ export function useConversationWith(agentToDispatch: string | RoomAgentDispatch
214214 ...generateDerivedConnectionStateValues ( ConnectionState . Connecting ) ,
215215
216216 local : {
217- camera : { participant : localParticipant , source : Track . Source . Camera } ,
218- microphone : { participant : localParticipant , source : Track . Source . Microphone } ,
217+ cameraTrack : { participant : localParticipant , source : Track . Source . Camera } ,
218+ microphoneTrack : { participant : localParticipant , source : Track . Source . Microphone } ,
219219 } ,
220220 } ;
221221
@@ -229,8 +229,8 @@ export function useConversationWith(agentToDispatch: string | RoomAgentDispatch
229229 ...generateDerivedConnectionStateValues ( roomConnectionState ) ,
230230
231231 local : {
232- camera : localCamera ?? { participant : localParticipant , source : Track . Source . Camera } ,
233- microphone : localMicrophone ?? { participant : localParticipant , source : Track . Source . Microphone } ,
232+ cameraTrack : localCamera ?? { participant : localParticipant , source : Track . Source . Camera } ,
233+ microphoneTrack : localMicrophone ?? { participant : localParticipant , source : Track . Source . Microphone } ,
234234 } ,
235235 } ;
236236
@@ -242,8 +242,8 @@ export function useConversationWith(agentToDispatch: string | RoomAgentDispatch
242242 ...generateDerivedConnectionStateValues ( ConnectionState . Disconnected ) ,
243243
244244 local : {
245- camera : { participant : localParticipant , source : Track . Source . Camera } ,
246- microphone : { participant : localParticipant , source : Track . Source . Microphone } ,
245+ cameraTrack : { participant : localParticipant , source : Track . Source . Camera } ,
246+ microphoneTrack : { participant : localParticipant , source : Track . Source . Microphone } ,
247247 } ,
248248 } ;
249249 }
0 commit comments