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.
- Sign up for a Daily account and get API key from https://dashboard.daily.co/developers
- Click the Netlify deploy button below and follow the instructions
-
Use the API key from above
-
Install the chrome extension and add the url of your new Netlify site.
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 callscreenshare
- 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".
- Install dependencies
npm i
- Start dev server
npm run dev
- Then open your browser and go to
http://localhost:8080
- Add your own room url in
index.js
and comment/uncomment the code as noted
OR...
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):
-
Install the Netlify CLI
npm i -g netlify-cli
-
Login to your account
netlify login
-
Rename
sample.env
to.env
and add your API key -
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 thenetlify.toml
file, so make sure you don't commit this change.
Let us know how experimenting with this demo goes! Feel free to reach out to us any time at [email protected]
.
Try customizing the landing page you see after leaving a meeting, or add support for other query parameters!