krg_eeng
krg_eeng

Reputation: 11

Webrtc incoming stream volume

im having a trouble with editing incoming mediastream volume.

Im using mediastream-gain and peerjs. Editing local stream gain is ok:

$('#my-video').prop('src', URL.createObjectURL(stream));
window.localStream = stream;
var gain = new MediaStreamGainController(stream);
gain.off();

But when setting the same to incoming stream:

call.on('stream', function(stream){
var gain = new MediaStreamGainController(stream);
gain.off();
$('#their-video').prop('src', URL.createObjectURL(stream));

It does not work. What is the difference?

Upvotes: 1

Views: 1000

Answers (1)

mido
mido

Reputation: 25034

Benjamin Trent is correct, it is a Chrome issue. mediastream-gain depends on WebAudio API and Chrome doesn't let WebAudio API hook-up with remote streams. I have been struggling with this for ages (for recording remote audio). I guess there is not much we can do about it, except star the issue and pray they care.

Upvotes: 1

Related Questions