File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " livekit-client " : patch
3+ ---
4+
5+ fix: ensure audio output switching is disabled for safari based browsers
Original file line number Diff line number Diff line change @@ -1345,7 +1345,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
13451345 ( ! supportsSetSinkId ( ) && ! this . options . webAudioMix ) ||
13461346 ( this . options . webAudioMix && this . audioContext && ! ( 'setSinkId' in this . audioContext ) )
13471347 ) {
1348- throw new Error ( 'cannot switch audio output, setSinkId not supported ' ) ;
1348+ throw new Error ( 'cannot switch audio output, the current browser does not support it ' ) ;
13491349 }
13501350 if ( this . options . webAudioMix ) {
13511351 // setting `default` for web audio output doesn't work, so we need to normalize the id before
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export function isSVCCodec(codec?: string): boolean {
141141}
142142
143143export function supportsSetSinkId ( elm ?: HTMLMediaElement ) : boolean {
144- if ( ! document ) {
144+ if ( ! document || isSafariBased ( ) ) {
145145 return false ;
146146 }
147147 if ( ! elm ) {
You can’t perform that action at this time.
0 commit comments