File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' livekit-client ' : patch
3+ ---
4+
5+ fix(LocalTrackAudio): prevent overwriting constraint flags
Original file line number Diff line number Diff line change @@ -78,11 +78,13 @@ export async function createLocalTracks(
7878 deviceId : { ideal : deviceId } ,
7979 } ;
8080 }
81- if (
82- internalOptions . audio === true ||
83- ( typeof internalOptions . audio === 'object' && ! internalOptions . audio . deviceId )
84- ) {
81+ if ( internalOptions . audio === true ) {
8582 internalOptions . audio = { deviceId : 'default' } ;
83+ } else if ( typeof internalOptions . audio === 'object' && internalOptions . audio !== null ) {
84+ internalOptions . audio = {
85+ ...internalOptions . audio ,
86+ deviceId : internalOptions . audio . deviceId || 'default' ,
87+ } ;
8688 }
8789 if ( internalOptions . video === true ) {
8890 internalOptions . video = { deviceId : 'default' } ;
You can’t perform that action at this time.
0 commit comments