steep-balloon-41261
09/25/2023, 12:16 AMeager-zoo-16408
09/25/2023, 8:15 AM<LiveKitRoom>
<RoomAudioRenderer />
</LiveKitRoom>
It will automatically subscribe to all audio tracks and make sure that the audio just works. When you use RoomAudioRendere you can remove the AudioTrack in your ParticipantTileboundless-jackal-7234
09/25/2023, 8:16 AMboundless-jackal-7234
09/26/2023, 1:01 AMboundless-jackal-7234
09/26/2023, 2:43 AMeager-zoo-16408
09/26/2023, 8:22 AMtrue publishes the local tracks immediately after joining the room: docs
The reason why you donโt here audio is possible because of autoplay policy.
We created the useStartAudio (Source) hook and the <StartAudio/> (Docs | Source) component to deal with that.
/**
* In many browsers to start audio playback, the user must perform a user-initiated event such as clicking a button.
* Thehook returns an object with a booleanuseStatAudioflagcanPlayAudio
* that indicates whether audio playback is allowed in the current context,
* as well as afunction that can be called in a buttonstartAudiocallback to start audio playback in the current context.onClick
*Let me know if this fixes your problem. ๐ค
eager-zoo-16408
09/26/2023, 8:41 AMboundless-jackal-7234
09/27/2023, 2:45 AMboundless-jackal-7234
10/03/2023, 3:48 AM