gentle-painting-73304
02/17/2025, 3:04 AMcanPublish
permission is updated via the nodejs server, I run this code on the android client,
is ParticipantEvent.ParticipantPermissionsChanged -> {
if (event.newPermissions?.canPublish == true) {
localParticipant?.setMicrophoneEnabled(true)
localParticipant?.setCameraEnabled(isVideoAllowed)
}
}
and yet I can't hear the updated participant, only the host who started the room. What could be wrong?gray-monkey-83525
02/17/2025, 3:04 AMParticipantPermissionsChanged
event should trigger updates to the participant's ability to publish tracks. However, if you are unable to hear the updated participant, it might be due to the tracks not being properly subscribed to or enabled after the permission change.
To troubleshoot, ensure that the tracks are being subscribed to correctly after the permission update. You might need to explicitly subscribe to the participant's tracks if they are not automatically subscribed. Additionally, verify that the participant's audio track is enabled and not muted. If the issue persists, consider checking the server-side logic to ensure that the permission updates are being correctly propagated to the client.
Would you like more detailed guidance on how to handle track subscriptions or permissions in LiveKit?
Sources:
- LiveKit documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.gentle-painting-73304
02/17/2025, 3:10 AMParticipantEvent.LocalTrackPublished
nor RoomEvent.TrackPublished
on the other participant's end is getting fired after calling localParticipant?.setMicrophoneEnabled(true)
. Why is that?gentle-painting-73304
02/17/2025, 3:40 AMParticipantEvent.LocalTrackPublished
nor RoomEvent.TrackPublished
on the other participant's end is getting fired after calling localParticipant?.setMicrophoneEnabled(true)
. Why is that?gray-monkey-83525
02/17/2025, 3:40 AMLocalTrackPublished
event should be triggered when a local track is successfully published. If this event is not firing, it could be due to several reasons:
1. Track Publishing: Ensure that the track is being published successfully. Check if there are any errors or exceptions when calling setMicrophoneEnabled(true)
. The track might not be published if there are issues with permissions or device access.
2. Event Listeners: Verify that the event listeners for ParticipantEvent.LocalTrackPublished
and RoomEvent.TrackPublished
are correctly set up and registered before the track is published. If the listeners are not active, the events will not be captured.
3. Permissions: Ensure that the participant has the necessary permissions to publish tracks. If the canPublish
permission is not set correctly, the track will not be published.
4. Network Issues: Check for any network connectivity issues that might prevent the track from being published to the server.
Would you like more detailed guidance on setting up event listeners or troubleshooting track publishing in LiveKit?
Sources:
- https://livekit-users.slack.com/archives/C07FYCB7FRQ/p1728674567.746139 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.