Skip to content

Commit 669b779

Browse files
Enable Recording in Daily Video Calls (#1141)
* ⬆️ Bump tailwindcss from 2.2.14 to 2.2.15 Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 2.2.14 to 2.2.15. - [Release notes](https://github.com/tailwindlabs/tailwindcss/releases) - [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md) - [Commits](tailwindlabs/tailwindcss@v2.2.14...v2.2.15) --- updated-dependencies: - dependency-name: tailwindcss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * updating cal will provide a zoom meeting url * updating cal will provide a zoom meeting url * modifying how daily emails send * modifying how daily emails send * daily table * migration updates * rebasing updates * updating Daily references to a new table * merge updates, adding Daily references to book/events.ts * updated video email templates to remove Daily specific references * updating the events.ts and refactoring in the event manager * removing the package-lock * updating some of the internal Daily notes * removing handle errors raw from the Daily video client * prettier formatting fixes * Added the Daily location to calendar events and updated Cal video references to Daily.co video * updating references to create in event manager to check for Daily video * adding a daily interface in the event manager * adding daily to the location labels * resolving yarn merge conflicts * removing prettier auto and refactoring integrations: daily in the event manager * removing changes to estlintrc.json * updating message when daily video call meeting has not started * updated modal time buffer * changed video calls to Cal colors * removing change to undoing change to lodash/merge on the event manager * removing change on the event-types to match the main repo * updating the border color in daily video calls * updating cal will provide a zoom meeting url * updating cal will provide a zoom meeting url * modifying how daily emails send * modifying how daily emails send * daily table * migration updates * rebasing updates * updating Daily references to a new table * merge updates, adding Daily references to book/events.ts * updated video email templates to remove Daily specific references * updating the events.ts and refactoring in the event manager * removing the package-lock * updating some of the internal Daily notes * removing handle errors raw from the Daily video client * prettier formatting fixes * Added the Daily location to calendar events and updated Cal video references to Daily.co video * updating references to create in event manager to check for Daily video * adding a daily interface in the event manager * adding daily to the location labels * resolving yarn merge conflicts * removing prettier auto and refactoring integrations: daily in the event manager * removing changes to estlintrc.json * updated modal time buffer * updates to enable recording * removed the console log line for debugging int he DailyVideoAdapter * removed the env copy created here * updating readme and chaging Daily Scale Plan variable to true * merge changes Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lola-Ojabowale <lola.ojabowale@gmail.com>
1 parent 4e01b13 commit 669b779

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.env.example

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ZOOM_CLIENT_SECRET=
3434

3535
#Used for the Daily integration
3636
DAILY_API_KEY=
37+
DAILY_SCALE_PLAN=''
3738

3839
# E-mail settings
3940

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ Contributions are what make the open source community such an amazing place to b
293293
2. From within your dashboard, go to the [developers](https://dashboard.daily.co/developers) tab.
294294
3. Copy your API key.
295295
4. Now paste the API key to your .env file into the `DAILY_API_KEY` field in your .env file.
296+
5. If you have a [Daily Scale Plan](https://www.daily.co/pricing) can also enable the ability to record Daily video meetings. To do so, set the `DAILY_SCALE_PLAN` environment variable to `'true'`
296297

297298
<!-- LICENSE -->
298299

lib/integrations/Daily/DailyVideoApiAdapter.ts

+17
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,23 @@ const DailyVideoApiAdapter = (credential: Credential): VideoApiAdapter => {
9797
// added a 1 hour buffer for room expiration and room entry
9898
const exp = Math.round(new Date(event.endTime).getTime() / 1000) + 60 * 60;
9999
const nbf = Math.round(new Date(event.startTime).getTime() / 1000) - 60 * 60;
100+
const scalePlan = process.env.DAILY_SCALE_PLAN;
101+
102+
if (scalePlan === "true") {
103+
return {
104+
privacy: "private",
105+
properties: {
106+
enable_new_call_ui: true,
107+
enable_prejoin_ui: true,
108+
enable_knocking: true,
109+
enable_screenshare: true,
110+
enable_chat: true,
111+
exp: exp,
112+
nbf: nbf,
113+
enable_recording: "local",
114+
},
115+
};
116+
}
100117
return {
101118
privacy: "private",
102119
properties: {

0 commit comments

Comments
 (0)