mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: do not add default audio track to screen media steam if screen audio source
parent
1e416325b6
commit
2e07e25df7
|
@ -504,7 +504,7 @@ export class Publisher extends StreamManager {
|
||||||
|
|
||||||
const getMediaSuccess = async (mediaStream: MediaStream, definedAudioConstraint) => {
|
const getMediaSuccess = async (mediaStream: MediaStream, definedAudioConstraint) => {
|
||||||
this.clearPermissionDialogTimer(startTime, timeForDialogEvent);
|
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
|
// When getting desktop as user media audio constraint must be false. Now we can ask for it if required
|
||||||
constraintsAux.audio = definedAudioConstraint;
|
constraintsAux.audio = definedAudioConstraint;
|
||||||
constraintsAux.video = false;
|
constraintsAux.video = false;
|
||||||
|
|
Loading…
Reference in New Issue