Closed camnewnham closed 4 years ago
Use RTCAudioSessionConfiguration
. This project does not provide a binding for the class (yet), so write a generic binding or a function specific to your use case by yourself just like you did as iOSAudio_setupAudioSession
. If you wrote a generic binding, we would like to appreciate a pull request for it.
Thanks for writing this library, it was a great start to getting running in Unity!
I'm having trouble getting the audio to play through the speaker on iOS and am hoping someone can offer some advice. For android this technique from sebjf worked but I was unable to create a similar function on iOS.
(Note I am not using the broadcast extension or anything - the code is mostly based on the Sora/PeerConnection example - I can provide more if relevant)
What I have tried
Setting the configuration in Unity:
Calling this function either before or after initialization of the RTC module and audio track:
None of these seem to affect how audio is played back, and it is always coming out of the earpiece rather than the loudspeaker.
Is there any ideas as to why this might not work?
Cheers Cam