Calm motion: animations on this site only fade, with no movement
Call screen
Video tiles for each person, with mute, camera, share, and hang up
The screen of a video call. The component draws the layout and the controls. Your app connects the call and gives the video of each person.
Basic
- Ana Putri, speaking
- Budi Santoso, muted
- Citra Dewi
- Dimas, muted
peopleis a list of people in the call. Each person has anidand aname. They can also have anavatar,muted,cameraOff, andspeaking.- The
videoslot gets eachperson. Put avideoelement with their stream in it. If the camera of a person is off, or the slot is empty, the tile shows the avatar. - The person who speaks gets a ring and the word "speaking" after the name. A muted person gets a mark and the word "muted".
- The grid has one column for one person, two columns for up to four, and three columns for more.
- The buttons are toggles:
v-model:muted,v-model:camera, andv-model:sharing. "Leave the call" emitsleave.elapsedshows the time in the call, as text. - The screen stays dark in both themes, as video looks best on a dark ground.
- Change the words with
labelsor a label pack:title,mute,camera,share,leave,muted,speaking, andcontrols.
Usage
ts
import { BlessCallScreen } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
people* | BlessCallPerson[] | — | |
elapsed | string | — | the time in the call, as text, for example "12:04" |
labels | Partial<{ title: string; mute: string; camera: string; share: string; leave: string; muted: string; speaking: string; controls: string; }> | — | |
muted | boolean | false | |
camera | boolean | true | |
sharing | boolean | false |
Events
| Name | Payload | Description |
|---|---|---|
update:muted | [value: boolean] | |
update:camera | [value: boolean] | |
update:sharing | [value: boolean] | |
leave | [] |
Slots
| Name | Scope | Description |
|---|---|---|
video | { person: BlessCallPerson; } |