echoCancellation = MediaTrackSettings.echoCancellation;

Hello!

There is support for this?
.
 

Max

Administrator
Staff member
Good day.
Please try the following settings:
Code:
constraints.audio.echoCancellation = true;
constraints.audio.googEchoCancellation = true;
Note that echo cancellation does not work well with stereo sound, so those constraints can't be used with constraints.audio.stereo
 
Is this correct?

session.createStream({
name: streamName,
display: localVideo,
record: true,
cacheLocalResources: true,
receiveVideo: false,
receiveAudio: false,
echoCancellation: true,
googEchoCancellation: true,
disableConstraintsNormalization: true,
constraints:{audio:true,video:{minBitrate: 300,maxBitrate: 7000,width:{ideal: 640},height:{ideal: 360},frameRate:{min:30,max:60}}}
 
Or this one:

session.createStream({
name: streamName,
display: localVideo,
record: true,
cacheLocalResources: true,
receiveVideo: false,
receiveAudio: false,
disableConstraintsNormalization: true,
constraints:{
audio:{
echoCancellation: true,
googEchoCancellation: true,
},
video:{
minBitrate: 300,
maxBitrate: 7000,
width:{
ideal: 640
},
height:{
ideal: 360
},
frameRate:{
min:30,
max:60
}
}
}
 
On player side is the same?


function playStream(session) {

var constraints = {
echoCancellation: true,
googEchoCancellation: true,
};

var options = {
name: streamName,
display: remoteVideo,
constraints: constraints,
flashShowFullScreenButton: true
};
 

Max

Administrator
Staff member
Code:
session.createStream({
    name: streamName,
    ...
    constraints:{
    audio:{
        echoCancellation: true,
        googEchoCancellation: true
    },
    video:{...}
}});
 
Top