Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reduce cal recording bitrate #15588

Merged
merged 7 commits into from
Jun 27, 2024
Merged

fix: reduce cal recording bitrate #15588

merged 7 commits into from
Jun 27, 2024

Conversation

Udit-takkar
Copy link
Contributor

@Udit-takkar Udit-takkar commented Jun 26, 2024

What does this PR do?

Slack thread about implementation https://calcominc.slack.com/archives/C02EQ5KP630/p1718760508623649?thread_ts=1718307301.750959&cid=C02EQ5KP630

Screenshot 2024-06-27 at 6 30 10 PM

TODO:-

  • Currently it takes some seconds to start recording so we need to add some modal/indicator that recording is starting

AFTER(21s, 480p, 500KB) VS BEFORE(26s, 1080p, 15MB)

Screenshot 2024-06-26 at 11 13 40 PM

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • N/A I confirm automated tests are in place that prove my fix is effective or that my feature works.

Copy link

linear bot commented Jun 26, 2024

@github-actions github-actions bot added cal video Medium priority Created by Linear-GitHub Sync labels Jun 26, 2024
@keithwillcode keithwillcode added consumer core area: core, team members only labels Jun 26, 2024
Copy link

vercel bot commented Jun 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 1:04pm
cal ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 1:04pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 1:04pm

@@ -165,3 +165,11 @@ export const TRANSCRIPTION_STARTED_ICON = IS_PRODUCTION
export const TRANSCRIPTION_STOPPED_ICON = IS_PRODUCTION
? `${WEBAPP_URL}/sparkles.svg`
: `https://app.cal.com/sparkles.svg`;

export const RECORDING_DEFAULT_ICON = IS_PRODUCTION
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Daily requires icon to be in https format so this won't be visible right now locally.

import { z } from "zod";

/** @link https://docs.daily.co/reference/rest-api/rooms/create-room */
export const dailyReturnTypeSchema = z.object({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just moved zod schemas to this file

room_name: dailyEvent.name,
exp: dailyEvent.config.exp,
is_owner: true,
enable_recording_ui: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set enable_recording_ui: false to hide default recording button because we want are using customTrayButtons

Comment on lines +53 to +58
recording: {
label: "Record",
tooltip: "Start or stop recording",
iconPath: RECORDING_DEFAULT_ICON,
iconPathDarkMode: RECORDING_DEFAULT_ICON,
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom Recording button

Comment on lines +110 to +112
const guestMeetingPassword = await generateGuestMeetingTokenFromOwnerMeetingToken(
videoReference.meetingPassword
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required because we want a meeting token with enable_recording_ui: false so that default recording button doesn't show up

@Udit-takkar Udit-takkar marked this pull request as ready for review June 27, 2024 13:04
@graphite-app graphite-app bot requested a review from a team June 27, 2024 13:04
@Udit-takkar Udit-takkar added this to the v4.3 milestone Jun 27, 2024
@dosubot dosubot bot added the 🐛 bug Something isn't working label Jun 27, 2024
Copy link

graphite-app bot commented Jun 27, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (06/27/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link

graphite-app bot commented Jun 27, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (06/27/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@emrysal emrysal added this pull request to the merge queue Jun 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 27, 2024
@emrysal emrysal added this pull request to the merge queue Jun 27, 2024
Merged via the queue into main with commit 0e0dfcd Jun 27, 2024
33 checks passed
@emrysal emrysal deleted the chore/reduce-bitrate branch June 27, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working cal video consumer core area: core, team members only Medium priority Created by Linear-GitHub Sync ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3949] Reduce cal video recording bitrate
4 participants