setMemberMeta
setMemberMeta
- setMemberMeta(
params):Promise<void>
Assigns custom metadata to the specified RoomSession member. You can use this to store metadata whose meaning is entirely defined by your application.
Note that calling this method overwrites any metadata that had been previously set on the specified member.
Parameters
params
Object containing the parameters of the method.
memberId
Id of the member to affect. If omitted, affects the default device in the local client.
meta
The medatada object to assign to the member.
Returns
Promise<void>
Permissions
room.self.set_meta: to set the metadata for the local member.room.member.set_meta: to set the metadata for a remote member.
You need to specify the permissions when creating the Video Room Token on the server side.
Examples
Setting metadata for the current member:
Setting metadata for another member: