setUserName(name, options?)
In Daily Prebuilt, the name appears as a video overlay and in the chat. In custom call object builds, it is available on the user_name property of the local DailyParticipant object.
Parameters
The display name to set.
When
true, the name change applies only for the current meeting and does not persist to the participant’s profile. Defaults to false.Return value
Returns aPromise that resolves to { userName: string } — the name that was set.