daily-examples/custom/basic-call
Harshith Pabbati a162de9065
Merge pull request #77 from daily-demos/use-devices-hook
useDevices hook - Daily react hooks
2022-04-07 16:49:51 +05:30
..
components Merge pull request #61 from daily-demos/fitness-demo 2022-03-07 09:23:27 -05:00
pages use useScreenShare hook 2022-04-06 15:38:20 +05:30
public/assets renamed daily-js to custom 2021-09-23 17:22:47 +01:00
.babelrc renamed daily-js to custom 2021-09-23 17:22:47 +01:00
.gitignore renamed daily-js to custom 2021-09-23 17:22:47 +01:00
README.md use useDevices hook 2022-04-06 10:58:46 +05:30
env.example renamed daily-js to custom 2021-09-23 17:22:47 +01:00
image.png renamed daily-js to custom 2021-09-23 17:22:47 +01:00
index.js renamed daily-js to custom 2021-09-23 17:22:47 +01:00
next.config.js renamed daily-js to custom 2021-09-23 17:22:47 +01:00
package.json renamed daily-js to custom 2021-09-23 17:22:47 +01:00

README.md

Basic call

Basic Call

Live example

See it in action here ➡️


What does this demo do?

  • Built on NextJS
  • Create a Daily instance using call object mode
  • Manage user media devices
  • Render UI based on the call state
  • Handle media and call errors
  • Obtain call access token via Daily REST API
  • Handle preauthentication, knock for access and auto join

Please note: this demo is not currently mobile optimised

Getting started

# set both DAILY_API_KEY and DAILY_DOMAIN
mv env.example .env.local

# from project root...
yarn
yarn workspace @custom/basic-call dev

How does this example work?

This demo puts to work the following shared libraries:

MediaDeviceProvider.js Convenience context that provides an interface to media devices throughout app

CallProvider.js Primary call context that manages Daily call state, participant state and call object interaction

useCallMachine.js Abstraction hook that manages Daily call state and error handling

ParticipantsProvider.js Manages participant state and abstracts common selectors / derived data

Deploy your own on Vercel

Deploy with Vercel