Skip to content

Commit

Permalink
openvidu-browser: do not add default audio track to screen media stea…
Browse files Browse the repository at this point in the history
…m if screen audio source
  • Loading branch information
pabloFuente committed Oct 16, 2023
1 parent 1e41632 commit 2e07e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvidu-browser/src/OpenVidu/Publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ export class Publisher extends StreamManager {

const getMediaSuccess = async (mediaStream: MediaStream, definedAudioConstraint) => {
this.clearPermissionDialogTimer(startTime, timeForDialogEvent);
if (this.stream.isSendScreen() && this.stream.isSendAudio()) {
if (this.stream.isSendScreen() && this.properties.audioSource !== 'screen' && this.stream.isSendAudio()) {
// When getting desktop as user media audio constraint must be false. Now we can ask for it if required
constraintsAux.audio = definedAudioConstraint;
constraintsAux.video = false;
Expand Down

0 comments on commit 2e07e25

Please sign in to comment.