Can't mute or use speaker
Closed this issue · 7 comments
When i use the below code
// speaker on off
Helper.setSpeakerphoneOn(!speakerCall)
// mute mic on off
var trackLocal = localStream?.getTracks();
print(trackLocal);
// make sure that track was audio, u can read info about track when u print trackLocal
Helper.setMicrophoneMute(!muteCall, trackLocal!.first);
to either mute or speaker , i got exception that null is not sub type of bool , however i am 100% sure that the values is not null
am i messing any thing ?
I only use sip plugin , In case. this may help
Can you briefly describe what feature are you looking for? Your request is not clear
I use sip plugin to make calls , so far it works good , but when i try to mute my self or use speaker in the call , i kept getting null error however there is no thing null
You should use rtp sender to access the underlying track going to peer, i think you are trying to use mediastream object which is not being used that's why it's giving you null error
If possible can you give me example of how to do that
#48b92ed
check this
if you want to set the microphone mute/unmute for Flutter native ie. ios,android then
Helper.setMicrophoneMute(mute, track)
keep in mind media i/o management has differences in native and web for more info you should ask questions on flutter_webrtc
closing.