web / frontend /src /components /VideoPlayerControls.tsx
Chandima Prabhath
Track bun.lockb with Git LFS
cc2caf9
raw
history blame
665 Bytes
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;