Skip to content

wesley83/fullscreen-prebuilt-ui-2

Repository files navigation

Daily fullscreen prebuilt UI demo

This demo highlights Daily's prebuilt UI, and how it can be expanded fullscreen in a website or app.

It works really well with our chrome extension demo. Although it works totally fine as a standalone app as well.

Check out a live version of the demo here.

Prerequisites

Optional

  • Click the Netlify deploy button below and follow the instructions

Deploy with Netlify

  • Use the API key from above

  • Install the chrome extension and add the url of your new Netlify site.

How the demo works

The frontend part of this demo renders our prebuilt UI in a fullscreen iframe and looks for two query parameters:

  • room - the url of the call
  • screenshare - whether to automatically start a screenshare

This means if you visit https://your-netlify-site.netlify.app/?room=https://mydomain.daily.co/roomname&screenshare=true it will join a meeting at the room url specified and prompt you to start a screenshare.

It also contains a API proxy that is meant to be deployed to Netlify that will create rooms for you. This allows a demo room to be automatically created whenever you load the app without a room paramter in the url. This also allows the chrome extension to create a unique room whenever you click "Create and launch call".

Running locally

  1. Install dependencies npm i
  2. Start dev server npm run dev
  3. Then open your browser and go to http://localhost:8080
  4. Add your own room url in index.js and comment/uncomment the code as noted

OR...

Running using Netlify CLI

If you want access to the Daily REST API (using the proxy as specified in netlify.toml) as well as a more robust local dev environment, please do the following (in this project's directory):

  1. Deploy to your Netlify account Deploy with Netlify

  2. Install the Netlify CLI npm i -g netlify-cli

  3. Login to your account netlify login

  4. Rename sample.env to .env and add your API key

  5. Start the dev server netlify dev

Note: If the API proxy isn't working locally you may need to run netlify build first. This will put API key in the netlify.toml file, so make sure you don't commit this change.

Contributing and feedback

Let us know how experimenting with this demo goes! Feel free to reach out to us any time at help@daily.co.

What's next

Try customizing the landing page you see after leaving a meeting, or add support for other query parameters!

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published