setUserName()

setUserName(name, { thisMeetingOnly: boolean })

Programmatically set the local participant's user name that other participants see.

The name will be set via the user_name property in the DailyParticipant object corresponding to the local participant.

First argument is a string which is required; the second is an optional options object as follows: { thisMeetingOnly: boolean }.

Returns a Promise which resolves to the name that was set.