Home / Companies / Daily / Blog / Post Details
Content Deep Dive

How to set a Daily Prebuilt username programmatically before joining a call

Blog post from Daily

Post Details
Company
Date Published
Author
Jess Mitchell
Word Count
1,728
Language
English
Hacker News Points
-
Summary

Daily Prebuilt provides a solution for video calls by automatically setting participants' names before joining a call. However, there may be cases where the name form is not ideal, such as when embedding Daily Prebuilt in an app with its own external form to get the participant's name. To bypass this, two solutions are provided: using a meeting token or utilizing the createFrame and join methods to set the local username before joining. The enable_prejoin_ui room setting controls whether the prejoin UI view and name form are shown, and both solutions can be used to skip seeing Daily Prebuilt's name form and preset the username. Additionally, passing a username to createFrame, join, or setting it in a token can achieve this effect. Understanding these options is crucial for customizing the video call experience with Daily Prebuilt.