stasel / WebRTC

Unofficial distribution of up to date WebRTC framework binaries for iOS and macOS
Other
356 stars 75 forks source link

Microphone active even when audio track is recvonly #94

Open ankit-anil-kulkarni opened 4 months ago

ankit-anil-kulkarni commented 4 months ago

Hi @stasel , I'm facing an issue where the microphone icon on the iPhone (yellow icon to depict active use of the microphone) is active even when the audio track in my peer connection is set to recvonly. The same issue persists when I remove the audio track as well. What is the work around for this issue? If there is one I saw some webrtc community archives and found this - https://bugs.chromium.org/p/webrtc/issues/detail?id=5873 My application does send audio to a remote device - but I would like the microphone to be active only when the current device sends audio to a remote peer - not when I'm only receiving audio I tried using the manual audio option but that did not help either Has anyone faced a similar issue? Any help would be greatly appreciated Thanks!

tylerjames commented 2 months ago

I've had this same issue and had to go back to version 108 in order to provide a custom AudioDevice as described in your link. Only problem is that now the audio does not work at all for older phones (iPhone 11 or older) but it works fine on newer phones.