added readme and renamed project
This commit is contained in:
parent
0d27fa4b2d
commit
e3e3ce370a
|
|
@ -1,41 +0,0 @@
|
||||||
# Live Streaming
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### Live example
|
|
||||||
|
|
||||||
**[See it in action here ➡️](https://dailyjs-live-streaming.vercel.app)**
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## What does this demo do?
|
|
||||||
|
|
||||||
- Use [startLiveStreaming](https://docs.daily.co/reference#%EF%B8%8F-startlivestreaming) to send video and audio to specified RTMP endpoint
|
|
||||||
- Listen for stream started / stopped / error events
|
|
||||||
- Allows call owner to specify stream layout (grid, single participant or active speaker) and maximum cams
|
|
||||||
- Extends the basic call demo with a live streaming provider, tray button and modal
|
|
||||||
- Show a notification bubble at the top of the screen when live streaming is in progress
|
|
||||||
|
|
||||||
Please note: this demo is not currently mobile optimised
|
|
||||||
|
|
||||||
### Getting started
|
|
||||||
|
|
||||||
```
|
|
||||||
# set both DAILY_API_KEY and DAILY_DOMAIN
|
|
||||||
mv env.example .env.local
|
|
||||||
|
|
||||||
yarn
|
|
||||||
yarn workspace @dailyjs/live-streaming dev
|
|
||||||
```
|
|
||||||
|
|
||||||
## How does this example work?
|
|
||||||
|
|
||||||
In this example we extend the [basic call demo](../basic-call) with live streaming functionality.
|
|
||||||
|
|
||||||
We pass a custom tray object, a custom app object (wrapping the original in a new `LiveStreamingProvider`) and a custom modal. We also symlink both the `public` and `pages/api` folders from the basic call.
|
|
||||||
|
|
||||||
Single live streaming is only available to call owners, you must create a token when joining the call (for simplicity, we have disabled the abiltiy to join the call as a guest.)
|
|
||||||
|
|
||||||
## Deploy your own on Vercel
|
|
||||||
|
|
||||||
[](https://vercel.com/new/daily-co/clone-flow?repository-url=https%3A%2F%2Fgithub.com%2Fdaily-demos%2Fexamples.git&env=DAILY_DOMAIN%2CDAILY_API_KEY&envDescription=Your%20Daily%20domain%20and%20API%20key%20can%20be%20found%20on%20your%20account%20dashboard&envLink=https%3A%2F%2Fdashboard.daily.co&project-name=daily-examples&repo-name=daily-examples)
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 270 KiB |
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Recording
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Live example
|
||||||
|
|
||||||
|
**[See it in action here ➡️](https://dailyjs-recording.vercel.app)**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## What does this demo do?
|
||||||
|
|
||||||
|
- Use [startRecording](https://docs.daily.co/reference#%EF%B8%8F-startrecording) to create a video and audio recording of your call. You can read more about Daily call recording (and the different modes and types) [here](https://docs.daily.co/reference#recordings)
|
||||||
|
- Supports both `cloud` and `local` recording modes (specified when creating the room or managed using the Daily dashboard)
|
||||||
|
- Coming soon: supports different recording layouts and composites
|
||||||
|
- Coming soon: use the Daily REST API to retrieve a list of cloud recordings for the current active room
|
||||||
|
|
||||||
|
**To turn on recording, you need to be on the Scale plan. There is also a per minute recording fee for cloud recording.**
|
||||||
|
|
||||||
|
Please note: this demo is not currently mobile optimised
|
||||||
|
|
||||||
|
### Getting started
|
||||||
|
|
||||||
|
```
|
||||||
|
# set both DAILY_API_KEY and DAILY_DOMAIN
|
||||||
|
mv env.example .env.local
|
||||||
|
|
||||||
|
yarn
|
||||||
|
yarn workspace @dailyjs/recording dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deploy your own on Vercel
|
||||||
|
|
||||||
|
[](https://vercel.com/new/daily-co/clone-flow?repository-url=https%3A%2F%2Fgithub.com%2Fdaily-demos%2Fexamples.git&env=DAILY_DOMAIN%2CDAILY_API_KEY&envDescription=Your%20Daily%20domain%20and%20API%20key%20can%20be%20found%20on%20your%20account%20dashboard&envLink=https%3A%2F%2Fdashboard.daily.co&project-name=daily-examples&repo-name=daily-examples)
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 281 KiB |
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@dailyjs/cloud-recording",
|
"name": "@dailyjs/recording",
|
||||||
"description": "Basic Call + Cloud Recording",
|
"description": "Basic Call + Recording",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
Loading…
Reference in New Issue