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
string
required
The display name to set.
boolean
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.