https://livekit.io logo
#helpdesk
Title
# helpdesk
s

salmon-optician-66516

09/21/2022, 8:47 PM
Hello
d

dry-elephant-14928

09/21/2022, 8:49 PM
hi Sai, please thread your questions. 🙏
s

salmon-optician-66516

09/21/2022, 8:50 PM
My bad sorry! Great package! Kudos to the efforts! I'm using flutter as client. And my usecase is collab based podcasts. So no video usage whatsoever. How can I listen to audio only. By default there is only video renderer widget. If I need to play remote audio how do I do it and if multiple persons speak at the same time. How to play all those tracks in a synchronised way. Thanks in advance.
d

dry-elephant-14928

09/21/2022, 8:53 PM
thank you! Audio is played automatically on some platforms, including Flutter! it's mentioned here in the docs.
s

salmon-optician-66516

09/21/2022, 8:55 PM
Thanks for mentioning it again. Yeah I did see it in pub documentation under audio handling. But for some reason I'm not able to hear them!
d

dry-elephant-14928

09/21/2022, 8:56 PM
can you describe the problem ?
s

salmon-optician-66516

09/21/2022, 8:56 PM
Example app works perfectly. And isSpeaking reacts perfectly. But still not able to hear the track from the published phone.
Track published in one device is not received by subscribers. The device which is publishing while giving grant in server side I'm giving it as canPublish: true & canSubscribe: true but for all other listeners I'm doing it as canPublish: false & canSubscribe: true. So this is how I'm generating tokens for the users who are connecting to the room. Then I'm trying to publish audio manually by doing setMicrophoneEnabled(true) and calling publishAudioTrack with created local audio track as param
Now in the publisher side when speaking, I'm getting isSpeaking as true in participants props. But not able to hear the audio thats been published.
d

dry-elephant-14928

09/21/2022, 9:03 PM
which device are you testing on?
s

salmon-optician-66516

09/21/2022, 9:04 PM
Publishing audio from Mi Note 9 and receiving data in iPhone 11
Example app works wonders. Because the video renderer widget is present there,
Automatically audio is not playing
Tried with release builds also.
If i have to manually play audio via some plugin like just_audio, how to do it so? 🙏
Excuse my silly question. Why there is not an audio renderer/player like video renderer?
d

dry-elephant-14928

09/22/2022, 4:53 AM
hey Sai, not a silly question at all. WebRTC libraries on mobile devices automatically decode incoming audio for playback. They don't give the user precise control over it. If you are having issues, can you upload an example/code snippet how one could reproduce the issue? Using the example app, even if video is not published, audio still plays back just fine in our testing.
s

salmon-optician-66516

09/22/2022, 7:22 AM
Thanks for the explanation. I was able to do it once listener was registered with rebuild triggers.
We have hosted LiveKit server in AWS with c5.xlarge as instance type. Our use-case is audio only like clubhouse. Kindly share an approximate ball park figure of how many rooms we can host simultaneously and how many users can each room accommodate.? And I'm updating livekit server by this command
docker pull livekit/livekit-server
It pulls latest image. But is there any other process after this. because when I'm logging in flutter client it shows server version as 1.2.0, where as the latest should be 1.2.1
And how to add metadata so that we can retrieve in participant props.
I must admit that this is a well thought project and stuff just works , it just works out of the box. Amazingly done! Flutter client is rich with features! Thanks again for all your efforts.