Skip to content

daily-demos/daily-prejoin-presence

Daily Prejoin Presence

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.

Demo screenshot description

Prerequisites

How the demo works

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/

Running locally

  1. Run git clone git@github.com:daily-demos/daily-prejoin-presence.git
  2. Run cd daily-prejoin-presence
  3. Run npm i
  4. Copy example.env and replace DAILY_API_KEY with your Daily developer API key. Note: Do not submit this file to version control.
  5. Run npm run dev

Contributing and feedback

Contributions are welcome in the form of GitHub issues or pull requests.

What's next

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.

Related blog posts/guides

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published