chore: Replace segments string with chapters

This commit is contained in:
Yiannis Christodoulou 2025-09-19 08:28:15 +03:00
parent 5474db0b86
commit 2c6484b6ca
3 changed files with 5 additions and 5 deletions

View File

@ -55,12 +55,12 @@ const EditingTools = ({
<div className="flex-container single-row"> <div className="flex-container single-row">
{/* Left side - Play buttons group */} {/* Left side - Play buttons group */}
<div className="button-group play-buttons-group"> <div className="button-group play-buttons-group">
{/* Play Segments button */} {/* Play Chapters button */}
<button <button
className={`button segments-button`} className={`button segments-button`}
onClick={onPlaySegments} onClick={onPlaySegments}
data-tooltip={ data-tooltip={
isPlayingSegments ? 'Stop segments playback' : 'Play segments in one continuous flow' isPlayingSegments ? 'Stop chapters playback' : 'Play chapters in one continuous flow'
} }
style={{ fontSize: '0.875rem' }} style={{ fontSize: '0.875rem' }}
> >

View File

@ -2067,7 +2067,7 @@ const TimelineControls = ({
onClick={handleSegmentClick(segment.id)} onClick={handleSegmentClick(segment.id)}
> >
<div className="clip-segment-info"> <div className="clip-segment-info">
<div className="clip-segment-name">Segment {index + 1}</div> <div className="clip-segment-name">Chapter {index + 1}</div>
<div className="clip-segment-time"> <div className="clip-segment-time">
{formatTime(segment.startTime)} - {formatTime(segment.endTime)} {formatTime(segment.startTime)} - {formatTime(segment.endTime)}
</div> </div>
@ -2573,7 +2573,7 @@ const TimelineControls = ({
<span className="timeline-title-text">Timeline</span> <span className="timeline-title-text">Timeline</span>
</div> </div>
<div className="duration-time"> <div className="duration-time">
Total Segments:{' '} Total Chapters:{' '}
<span> <span>
{formatDetailedTime( {formatDetailedTime(
clipSegments.reduce((sum, segment) => sum + (segment.endTime - segment.startTime), 0) clipSegments.reduce((sum, segment) => sum + (segment.endTime - segment.startTime), 0)

View File

@ -890,7 +890,7 @@ const useVideoChapters = () => {
}; };
}, [isPlayingSegments, currentSegmentIndex]); }, [isPlayingSegments, currentSegmentIndex]);
// Handle play segments // Handle play chapters
const handlePlaySegments = () => { const handlePlaySegments = () => {
const video = videoRef.current; const video = videoRef.current;
if (!video || clipSegments.length === 0) return; if (!video || clipSegments.length === 0) return;