@ -1633,7 +1633,8 @@ export default {
// In case there was no local audio when screen sharing was started the fact that we set the audio stream to
// In case there was no local audio when screen sharing was started the fact that we set the audio stream to
// null will take care of the desktop audio stream cleanup.
// null will take care of the desktop audio stream cleanup.
} else if ( this . _desktopAudioStream ) {
} else if ( this . _desktopAudioStream ) {
await this . useAudioStream ( null ) ;
await room . replaceTrack ( this . _desktopAudioStream , null ) ;
this . _desktopAudioStream . dispose ( ) ;
this . _desktopAudioStream = undefined ;
this . _desktopAudioStream = undefined ;
}
}
@ -1976,9 +1977,9 @@ export default {
} else {
} else {
// If no local stream is present ( i.e. no input audio devices) we use the screen share audio
// If no local stream is present ( i.e. no input audio devices) we use the screen share audio
// stream as we would use a regular stream.
// stream as we would use a regular stream.
logger . debug ( ` _switchToScreenSharing is using ${ this . _desktopAudioStream } for useAudioStream ` ) ;
logger . debug ( ` _switchToScreenSharing is using ${ this . _desktopAudioStream } for replacing it as `
await this . useAudioStream ( this . _desktopAudioStream ) ;
+ ' the only audio track on the conference' ) ;
await room . replaceTrack ( null , this . _desktopAudioStream ) ;
}
}
APP . store . dispatch ( setScreenAudioShareState ( true ) ) ;
APP . store . dispatch ( setScreenAudioShareState ( true ) ) ;
}
}