No audio heard from shared video until startAudio() is called

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.

Hey @devtesting492

Thanks for your feedback.

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
Vic

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.

Hey @devtesting492

Could you share some problematic session IDs with us for troubleshooting purposes?

Based on the current assumption, it’s likely that the audio failed to start because permission was not granted on Safari.

Thanks
Vic