diff --git a/.gitignore b/.gitignore index 58120f11..9ccc6e1f 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ yt.readme.md frontend-tools/.DS_Store static/video_editor/videos/sample-video-30s.mp4 static/video_editor/videos/sample-video-37s.mp4 +/frontend-tools/video-editor-v2 +.DS_Store diff --git a/frontend-tools/video-editor/.gitignore b/frontend-tools/video-editor/.gitignore index a3da5d9f..1b13e1f8 100644 --- a/frontend-tools/video-editor/.gitignore +++ b/frontend-tools/video-editor/.gitignore @@ -10,3 +10,6 @@ client/public/videos/sample-video-30s.mp4 client/public/videos/sample-video-37s.mp4 videos/sample-video-37s.mp4 client/public/videos/sample-video-30s.mp4 +client/public/videos/sample-video-1.mp4 +client/public/videos/sample-video-10m.mp4 +client/public/videos/sample-video-10s.mp4 diff --git a/frontend-tools/video-editor/client/src/App.tsx b/frontend-tools/video-editor/client/src/App.tsx index e2f1e0be..b774d0b0 100644 --- a/frontend-tools/video-editor/client/src/App.tsx +++ b/frontend-tools/video-editor/client/src/App.tsx @@ -16,7 +16,6 @@ const App = () => { isPlaying, setIsPlaying, isMuted, - isPreviewMode, thumbnails, trimStart, trimEnd, @@ -34,7 +33,6 @@ const App = () => { handleReset, handleUndo, handleRedo, - handlePreview, toggleMute, handleSave, handleSaveACopy, @@ -251,10 +249,8 @@ const App = () => { onReset={handleReset} onUndo={handleUndo} onRedo={handleRedo} - onPreview={handlePreview} onPlaySegments={handlePlaySegments} onPlay={handlePlay} - isPreviewMode={isPreviewMode} isPlaying={isPlaying} isPlayingSegments={isPlayingSegments} canUndo={historyPosition > 0} @@ -279,7 +275,6 @@ const App = () => { onSave={handleSave} onSaveACopy={handleSaveACopy} onSaveSegments={handleSaveSegments} - isPreviewMode={isPreviewMode} hasUnsavedChanges={hasUnsavedChanges} isIOSUninitialized={isMobile && !videoInitialized} isPlaying={isPlaying} diff --git a/frontend-tools/video-editor/client/src/components/EditingTools.tsx b/frontend-tools/video-editor/client/src/components/EditingTools.tsx index 674b81b2..8f5ca165 100644 --- a/frontend-tools/video-editor/client/src/components/EditingTools.tsx +++ b/frontend-tools/video-editor/client/src/components/EditingTools.tsx @@ -6,12 +6,10 @@ interface EditingToolsProps { onReset: () => void; onUndo: () => void; onRedo: () => void; - onPreview: () => void; onPlaySegments: () => void; onPlay: () => void; canUndo: boolean; canRedo: boolean; - isPreviewMode?: boolean; isPlaying?: boolean; isPlayingSegments?: boolean; } @@ -21,12 +19,10 @@ const EditingTools = ({ onReset, onUndo, onRedo, - onPreview, onPlaySegments, onPlay, canUndo, canRedo, - isPreviewMode = false, isPlaying = false, isPlayingSegments = false, }: EditingToolsProps) => { @@ -116,8 +112,8 @@ const EditingTools = ({ )} */} - {/* Standard Play button (only shown when not in preview mode or segments playback) */} - {!isPreviewMode && (!isPlayingSegments || !isSmallScreen) && ( + {/* Standard Play button (only shown when not in segments playback on small screens) */} + {(!isPlayingSegments || !isSmallScreen) && (
{formatDetailedTime(displayTime)}
{formatDetailedTime(clickedTime)}
@@ -2765,9 +2765,9 @@ const TimelineControls = ({
{/* New segment button - Moved to first position */}