Parameters

Catalyst provides a wide variety of required and optional parameters to customize your instance. Below is a table for your use. For more details on each specific prop, view the relevant documentation pages.

PropDescriptionTypeExample ValueRequired
roomUnique session identifier (peers with the same room are connected)stringROOM_NAMERequired
appIdUnique project identifier, obtained from the API keys tab of our management portalstringYOUR_CATALYST_PROJECT_IDRequired
nameDisplay name of member joining the callstringMEMBER_NAMEOptional
fadeMilliseconds of no user interaction before fading out controls. Disabled when set to 0number600Optional
audioOnDefaultIs microphone enabled by defaultbooleantrueOptional
videoOnDefaultIs webcam enabled by defaultbooleantrueOptional
themeColor scheme. Includes: primary (main color), secondary (background color), tertiary (button color), quaternary (button hover color), quinary (text color)string{ primary?: string; secondary?: string; tertiary?: string; quaternary?: string; quinary?: string; }default
simulcastPublish multiple levels of quality for video streamsbooleantrueOptional
bgRemovalSet video background removal options, including blur or custom background image pathstringblur, https://img.pngOptional
disableChatHide text chat functionalitybooleantrueOptional
disableSelfieModeStop auto-correction of uncanny-valley effect that flips portrait camerabooleantrueOptional
disableSetupViewSkip setup viewbooleantrueOptional
disableNameFieldHide user name input field in setup viewbooleantrueOptional
cstmSetupBgGradient or hex-code background for setup viewstring#fffOptional
disableRefreshBtnHide refresh button in top settings barbooleantrueOptional
cstmWelcomeMsgMessage displayed when you are the only member in roomstring, HTMLElementWelcome!Optional
cstmSupportUrlUrl for all help/support messages. When set to an empty string hides support icon.stringhttps://catalyst.chat/contact.htmlOptional
arbDataData passed to all other members of roomUint8ArrayTextEncoder().encode('str')Optional
handleReceiveArbDataFunction triggered whenever arbitrary data is receivedFunction(arbData: Uint8Array) => voidOptional
handleUserDataFunction passed all user metadata after token is generatedFunction(userData: CatalystUserData) => voidOptional
onJoinCallFunction triggered when user joins the callFunction() => voidOptional
onMemberJoinFunction triggered when a member joins the callFunction() => voidOptional
onMemberLeaveFunction triggered when a member leaves the callFunction() => voidOptional
onLeaveCallFunction triggered when user leaves callFunction() => voidOptional