Spaces:
Running
Running
File size: 665 Bytes
cc2caf9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
import React, { useState } from 'react';
import WatchTogether from './WatchTogether';
interface VideoPlayerControlsProps {
title: string;
currentTime: number;
duration: number;
onSeek?: (time: number) => void;
showWatchTogether?: boolean;
}
const VideoPlayerControls: React.FC<VideoPlayerControlsProps> = ({
title,
currentTime,
duration,
onSeek,
showWatchTogether = true
}) => {
return (
<>
{showWatchTogether && (
<WatchTogether
title={title}
currentTime={currentTime}
duration={duration}
onSeek={onSeek}
/>
)}
</>
);
};
export default VideoPlayerControls;
|