Skip to content

feat: implement default playback speed setting#1899

Closed
Ishant5436 wants to merge 1 commit into
CapSoftware:mainfrom
Ishant5436:feat/default-playback-speed
Closed

feat: implement default playback speed setting#1899
Ishant5436 wants to merge 1 commit into
CapSoftware:mainfrom
Ishant5436:feat/default-playback-speed

Conversation

@Ishant5436
Copy link
Copy Markdown

@Ishant5436 Ishant5436 commented Jun 8, 2026

Hey, I implemented the default playback speed setting. I updated the effective video rules to cascade correctly and wired up the UI in the settings dialog. Tests are passing locally.

@superagent-security superagent-security Bot added the pr:verified PR passed security analysis. label Jun 8, 2026
showPlaybackStatusBadge={viewerId === data.owner.id}
isEditProcessing={isEditProcessing}
recordingStopped={recordingStopped}
defaultPlaybackSpeed={data.settings?.defaultPlaybackSpeed}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Org-level fallback missing for defaultPlaybackSpeed

This reads only from data.settings (the raw video-level settings) and never falls back to data.orgSettings. Every other setting in this file is resolved via isDisabled, which correctly cascades videoSettings?.[key] ?? data.orgSettings?.[key] ?? false. If an admin configures defaultPlaybackSpeed only at the organization level (never per-video), viewers will always see 1× playback instead of the configured speed.

The expression should be data.settings?.defaultPlaybackSpeed ?? data.orgSettings?.defaultPlaybackSpeed.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/web/app/s/[videoId]/Share.tsx
Line: 505

Comment:
**Org-level fallback missing for `defaultPlaybackSpeed`**

This reads only from `data.settings` (the raw video-level settings) and never falls back to `data.orgSettings`. Every other setting in this file is resolved via `isDisabled`, which correctly cascades `videoSettings?.[key] ?? data.orgSettings?.[key] ?? false`. If an admin configures `defaultPlaybackSpeed` only at the organization level (never per-video), viewers will always see 1× playback instead of the configured speed.

The expression should be `data.settings?.defaultPlaybackSpeed ?? data.orgSettings?.defaultPlaybackSpeed`.

How can I resolve this? If you propose a fix, please make it concise.

@richiemcilroy
Copy link
Copy Markdown
Member

Hey, thanks for submitting. This has already been added to Cap now - was a good coincidence!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:verified PR passed security analysis.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants