This demo shows a list of participants who have already entered a video call. This allows a user who is about to enter a Daily room to know who is already in the room before they join the call.
- Sign up for a Daily account.
- Install Go if you don't already have it.
This demo uses Daily Prebuilt to embed a full-featured video call on the client. It uses stateless Netlify functions to create Daily rooms and retrieve their presence information with Daily's REST API.
- The client-side Daily logic (to instantiate a call frame and join a call) is written in vanilla JavaScript and can be found in
src/call.js
- The server-side Daily logic (to create a Daily room and retrieve presence informatino) is written in Go and can be found in
netlify/functions/
- Run
git clone git@github.com:daily-demos/daily-prejoin-presence.git
- Run
cd daily-prejoin-presence
- Run
npm i
- Copy
example.env
and replaceDAILY_API_KEY
with your Daily developer API key. Note: Do not submit this file to version control. - Run
npm run dev
Contributions are welcome in the form of GitHub issues or pull requests.
A couple of ways to extend the functionality in this demo include:
- Update the presence list when participants join or leave a room (currently, the presence list is updated once per call prejoin.)
- Display when a user has joined the call in the presence list.