mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-09 08:58:53 -05:00
chore: Replace segments string with chapters
This commit is contained in:
parent
5474db0b86
commit
2c6484b6ca
@ -55,12 +55,12 @@ const EditingTools = ({
|
||||
<div className="flex-container single-row">
|
||||
{/* Left side - Play buttons group */}
|
||||
<div className="button-group play-buttons-group">
|
||||
{/* Play Segments button */}
|
||||
{/* Play Chapters button */}
|
||||
<button
|
||||
className={`button segments-button`}
|
||||
onClick={onPlaySegments}
|
||||
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' }}
|
||||
>
|
||||
|
||||
@ -2067,7 +2067,7 @@ const TimelineControls = ({
|
||||
onClick={handleSegmentClick(segment.id)}
|
||||
>
|
||||
<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">
|
||||
{formatTime(segment.startTime)} - {formatTime(segment.endTime)}
|
||||
</div>
|
||||
@ -2573,7 +2573,7 @@ const TimelineControls = ({
|
||||
<span className="timeline-title-text">Timeline</span>
|
||||
</div>
|
||||
<div className="duration-time">
|
||||
Total Segments:{' '}
|
||||
Total Chapters:{' '}
|
||||
<span>
|
||||
{formatDetailedTime(
|
||||
clipSegments.reduce((sum, segment) => sum + (segment.endTime - segment.startTime), 0)
|
||||
|
||||
@ -890,7 +890,7 @@ const useVideoChapters = () => {
|
||||
};
|
||||
}, [isPlayingSegments, currentSegmentIndex]);
|
||||
|
||||
// Handle play segments
|
||||
// Handle play chapters
|
||||
const handlePlaySegments = () => {
|
||||
const video = videoRef.current;
|
||||
if (!video || clipSegments.length === 0) return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user