diff --git a/frontend-tools/video-editor/client/src/App.tsx b/frontend-tools/video-editor/client/src/App.tsx
index 0fc08f65..68dae021 100644
--- a/frontend-tools/video-editor/client/src/App.tsx
+++ b/frontend-tools/video-editor/client/src/App.tsx
@@ -42,6 +42,8 @@ const App = () => {
isMobile,
videoInitialized,
setVideoInitialized,
+ isPlayingSegments,
+ handlePlaySegments,
} = useVideoTrimmer();
// Function to play from the beginning
@@ -250,9 +252,11 @@ const App = () => {
onUndo={handleUndo}
onRedo={handleRedo}
onPreview={handlePreview}
+ onPlaySegments={handlePlaySegments}
onPlay={handlePlay}
isPreviewMode={isPreviewMode}
isPlaying={isPlaying}
+ isPlayingSegments={isPlayingSegments}
canUndo={historyPosition > 0}
canRedo={historyPosition < history.length - 1}
/>
diff --git a/frontend-tools/video-editor/client/src/components/EditingTools.tsx b/frontend-tools/video-editor/client/src/components/EditingTools.tsx
index 635f4859..825b06ad 100644
--- a/frontend-tools/video-editor/client/src/components/EditingTools.tsx
+++ b/frontend-tools/video-editor/client/src/components/EditingTools.tsx
@@ -6,11 +6,13 @@ interface EditingToolsProps {
onUndo: () => void;
onRedo: () => void;
onPreview: () => void;
+ onPlaySegments: () => void;
onPlay: () => void;
canUndo: boolean;
canRedo: boolean;
isPreviewMode?: boolean;
isPlaying?: boolean;
+ isPlayingSegments?: boolean;
}
const EditingTools = ({
@@ -19,11 +21,13 @@ const EditingTools = ({
onUndo,
onRedo,
onPreview,
+ onPlaySegments,
onPlay,
canUndo,
canRedo,
isPreviewMode = false,
isPlaying = false,
+ isPlayingSegments = false,
}: EditingToolsProps) => {
// Handle play button click with iOS fix
const handlePlay = () => {
@@ -41,6 +45,35 @@ const EditingTools = ({
{/* Left side - Play buttons group */}
+ {/* Play Segments button */}
+
+
{/* Play Preview button */}