https://github.com/sudo-self/hello
video calling app via Cloudflare calls
https://github.com/sudo-self/hello
Last synced: 4 months ago
JSON representation
video calling app via Cloudflare calls
- Host: GitHub
- URL: https://github.com/sudo-self/hello
- Owner: sudo-self
- License: other
- Created: 2024-08-14T06:35:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T06:51:23.000Z (almost 2 years ago)
- Last Synced: 2025-07-19T05:31:41.902Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 3.82 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello
video calling application built using [Cloudflare Calls](https://developers.cloudflare.com/calls/).
## Variables
Go to the [Cloudflare Calls dashboard](https://dash.cloudflare.com/?to=/:account/calls) and create an application.
Put these variables into `.dev.vars`
```
CALLS_APP_ID=
CALLS_APP_SECRET=
```
### Optional variables
The following variables are optional:
- `MAX_WEBCAM_BITRATE` (default `1200000`): the maximum bitrate for each meeting participant's webcam.
- `MAX_WEBCAM_FRAMERATE` (default: `24`): the maximum number of frames per second for each meeting participant's webcam.
- `MAX_WEBCAM_QUALITY_LEVEL` (default `1080`): the maximum resolution for each meeting participant's webcam, based on the smallest dimension (i.e. the default is 1080p).
To customise these variables, place replacement values in `.dev.vars` (for development) and in the `[vars]` section of `wrangler.toml` (for the deployment).
## Development
```sh
npm run dev
```
Open up [http://127.0.0.1:8787](http://127.0.0.1:8787) and you should be ready to go!
## Deployment
1. Make sure you've installed `wrangler` and are logged in by running:
```sh
wrangler login
```
2. Update the `account_id` and `CALLS_APP_ID` in `wrangler.toml` to use your own Cloudflare Account ID and Calls App ID
3. You will also need to set the token as a secret by running:
```sh
wrangler secret put CALLS_APP_SECRET
```
4. Then you can run
```sh
npm run deploy
```