Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/components/video-editor/SettingsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ import {
} from "./types";
import { fromCursorSwaySliderValue, toCursorSwaySliderValue } from "./videoPlayback/cursorSway";
import { isZeroPadding } from "./videoPlayback/layoutUtils";
import { supportsPreviewPlaybackRate } from "./videoPlayback/playbackRate";
import {
cursorSetAssets,
getCursorStyleSizeMultiplier,
Expand Down Expand Up @@ -3057,6 +3058,15 @@ export function SettingsPanel({
key={option.speed}
type="button"
onClick={() => onClipSpeedChange?.(option.speed)}
disabled={!supportsPreviewPlaybackRate(option.speed)}
title={
!supportsPreviewPlaybackRate(option.speed)
? tSettings(
"speed.unsupported",
"Not supported for preview on this device",
)
: undefined
}
className={cn(
"h-auto w-full rounded-lg border px-0.5 py-2 text-center shadow-sm transition-all duration-200 ease-out cursor-pointer",
isActive
Expand Down
6 changes: 5 additions & 1 deletion src/components/video-editor/VideoEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ export default function VideoEditor() {
const effectiveShowCursor = sessionShowCursorOverride ?? showCursor;
const headerLeftControlsPaddingClass = appPlatform === "darwin" ? "pl-[76px]" : "";
const { cursorTelemetrySourcePath, autoCaptions, autoCaptionSettings } = timeline;
const exportSettings = useExportSettings(initialEditorPreferences, autoCaptions);
const exportSettings = useExportSettings(
initialEditorPreferences,
autoCaptions,
timeline.clipRegions,
);
const {
includeCaptionSidecar,
mp4FrameRate,
Expand Down
Loading
Loading