creamy-match-85520
09/05/2025, 12:56 AMtall-airline-16756
09/05/2025, 12:56 AMtall-airline-16756
09/05/2025, 12:57 AMCreateRoom API to define the room’s metadata. Think of this metadata as a little string where you can store any app-specific info, and the cool part is everyone in the room can see it.
Here’s a quick example using the Node.js Server SDK:
Sources: Room metadata | LiveKit Docs | packages/livekit-server-sdk/src/RoomServiceClient.ts | README.mdcreamy-match-85520
09/05/2025, 1:08 AMtall-airline-16756
09/05/2025, 1:08 AMhasAttributes property. Instead, you can check if attributes are present by seeing whether the attributes map is empty or not.
Here are some friendly tips to help you get everything synced up smoothly:
• Make sure the backend sets attributes using SetAttributes in the token's video grant or through UpdateParticipantRequest.
• On the frontend, keep an eye on ParticipantEvent.AttributesChanged so you can react to any updates right away.
• Check the attributes object directly to see if attributes exist—for example, by using Object.keys(participant.attributes).length > 0.
If you’re still running into trouble, just let me know! I’m here to help you figure it out.
Sources: CHANGELOG.md | CHANGELOG.md | Sources/LiveKit/Participant/Participant.swift | livekit-android-sdk/src/main/java/io/livekit/android/room/participant/Parti...