I found that when someone shares video content, I don’t hear any audio from it. However, when I turn on the microphone, I’m able to hear the sound.
It seems this happens because I didn’t call startAudio() initially — is that why there’s no sound output?
My intention is to mute the user’s mic by default, which is why I didn’t call startAudio() at the start. I’d like to get some advice from you all on the best way to handle this scenario.
It seems this happens because I didn’t call startAudio() initially — is that why there’s no sound output?
Yes.
My intention is to mute the user’s mic by default ,
The stream.startAudio method provides an option called mute, which allows the microphone to remain muted by default when connecting to the microphone and audio speaker.
Thanks for the solution! I found that in Safari, even when I pass the mute option to stream.startAudio, client.getCurrentUserInfo still shows muted as false.