diff --git a/dailyjs/cloud-recording/README.md b/dailyjs/cloud-recording/README.md deleted file mode 100644 index c5e7974..0000000 --- a/dailyjs/cloud-recording/README.md +++ /dev/null @@ -1,41 +0,0 @@ -# Live Streaming - -![Live Streaming](./image.png) - -### 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 - -[![Deploy with Vercel](https://vercel.com/button)](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) diff --git a/dailyjs/cloud-recording/image.png b/dailyjs/cloud-recording/image.png deleted file mode 100644 index 9781261..0000000 Binary files a/dailyjs/cloud-recording/image.png and /dev/null differ diff --git a/dailyjs/cloud-recording/.babelrc b/dailyjs/recording/.babelrc similarity index 100% rename from dailyjs/cloud-recording/.babelrc rename to dailyjs/recording/.babelrc diff --git a/dailyjs/recording/README.md b/dailyjs/recording/README.md new file mode 100644 index 0000000..88a92e2 --- /dev/null +++ b/dailyjs/recording/README.md @@ -0,0 +1,34 @@ +# Recording + +![Recording](./image.png) + +### 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 + +[![Deploy with Vercel](https://vercel.com/button)](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) diff --git a/dailyjs/cloud-recording/components/App/App.js b/dailyjs/recording/components/App/App.js similarity index 100% rename from dailyjs/cloud-recording/components/App/App.js rename to dailyjs/recording/components/App/App.js diff --git a/dailyjs/cloud-recording/components/App/index.js b/dailyjs/recording/components/App/index.js similarity index 100% rename from dailyjs/cloud-recording/components/App/index.js rename to dailyjs/recording/components/App/index.js diff --git a/dailyjs/cloud-recording/components/RecordingModal/RecordingModal.js b/dailyjs/recording/components/RecordingModal/RecordingModal.js similarity index 100% rename from dailyjs/cloud-recording/components/RecordingModal/RecordingModal.js rename to dailyjs/recording/components/RecordingModal/RecordingModal.js diff --git a/dailyjs/cloud-recording/components/RecordingModal/index.js b/dailyjs/recording/components/RecordingModal/index.js similarity index 100% rename from dailyjs/cloud-recording/components/RecordingModal/index.js rename to dailyjs/recording/components/RecordingModal/index.js diff --git a/dailyjs/cloud-recording/components/Tray/Tray.js b/dailyjs/recording/components/Tray/Tray.js similarity index 100% rename from dailyjs/cloud-recording/components/Tray/Tray.js rename to dailyjs/recording/components/Tray/Tray.js diff --git a/dailyjs/cloud-recording/components/Tray/index.js b/dailyjs/recording/components/Tray/index.js similarity index 100% rename from dailyjs/cloud-recording/components/Tray/index.js rename to dailyjs/recording/components/Tray/index.js diff --git a/dailyjs/cloud-recording/contexts/RecordingProvider.js b/dailyjs/recording/contexts/RecordingProvider.js similarity index 100% rename from dailyjs/cloud-recording/contexts/RecordingProvider.js rename to dailyjs/recording/contexts/RecordingProvider.js diff --git a/dailyjs/cloud-recording/env.example b/dailyjs/recording/env.example similarity index 100% rename from dailyjs/cloud-recording/env.example rename to dailyjs/recording/env.example diff --git a/dailyjs/recording/image.png b/dailyjs/recording/image.png new file mode 100644 index 0000000..b4af7c6 Binary files /dev/null and b/dailyjs/recording/image.png differ diff --git a/dailyjs/cloud-recording/next.config.js b/dailyjs/recording/next.config.js similarity index 100% rename from dailyjs/cloud-recording/next.config.js rename to dailyjs/recording/next.config.js diff --git a/dailyjs/cloud-recording/package.json b/dailyjs/recording/package.json similarity index 85% rename from dailyjs/cloud-recording/package.json rename to dailyjs/recording/package.json index 8949ed8..48a1257 100644 --- a/dailyjs/cloud-recording/package.json +++ b/dailyjs/recording/package.json @@ -1,6 +1,6 @@ { - "name": "@dailyjs/cloud-recording", - "description": "Basic Call + Cloud Recording", + "name": "@dailyjs/recording", + "description": "Basic Call + Recording", "version": "0.1.0", "private": true, "scripts": { diff --git a/dailyjs/cloud-recording/pages/_app.js b/dailyjs/recording/pages/_app.js similarity index 100% rename from dailyjs/cloud-recording/pages/_app.js rename to dailyjs/recording/pages/_app.js diff --git a/dailyjs/cloud-recording/pages/api b/dailyjs/recording/pages/api similarity index 100% rename from dailyjs/cloud-recording/pages/api rename to dailyjs/recording/pages/api diff --git a/dailyjs/cloud-recording/pages/index.js b/dailyjs/recording/pages/index.js similarity index 100% rename from dailyjs/cloud-recording/pages/index.js rename to dailyjs/recording/pages/index.js diff --git a/dailyjs/cloud-recording/public b/dailyjs/recording/public similarity index 100% rename from dailyjs/cloud-recording/public rename to dailyjs/recording/public