I just want to sent only audio to other client. I dont even have any RTCVideoRenderer on my page, but I keep hearing my own voice feedback. So where that sound (my own voice) come from?
I used something like this :
var stream = await navigator.mediaDevices.getUserMedia({'video': false, 'audio': true});
localStream = stream;
...
localStream?.getTracks().forEach((track) {
log("SERVER: ADDING TRACK: ${track.toString()}");
// Disable audio output (I Ask ChatGPT & nothing works)
// track.applyConstraints({"deviceId": null});
// track.enabled = false;
peerConnection?.addTrack(track, localStream!);
});
In the web we can do videoTag.muted = true;
how can i do that in flutter_webrtc ?
I have searched, but mostly they give me solution for how to "mute" the microphone, so the other client cant hear myvoice aswell. but I want to my voice sent to other client.
My question, which part of code that flutter_webrtc play my own voice. and what posibly did I do wrong?