Skip to main content
addFakeParticipant(details?) Prebuilt Custom Adds a fake participant with a synthetic video stream to the local call view. The fake participant exists only on the local client — they are not an actual participant in the call and are not visible to others. This is a convenience method for building and testing your UI without needing additional real devices or browser tabs.

Parameters

details.aspectRatio
number
Optional. The aspect ratio of the fake video stream. Supported values are 16/9, 3/4, and 4/3. Defaults to 16/9.

Return value

Returns this (the DailyCall instance), allowing method chaining.

Example

// Add one fake participant with default 16:9 aspect ratio
call.addFakeParticipant();

// Add multiple fake participants to test grid layout
call.addFakeParticipant()
    .addFakeParticipant()
    .addFakeParticipant({ aspectRatio: 4/3 });

See also