add
This commit is contained in:
parent
510b75b206
commit
8e28fbf909
|
@ -14,6 +14,7 @@ export const VideoDisplay: React.FC<VideoDisplayProps> = ({
|
|||
onError,
|
||||
videoRef,
|
||||
setIsReady,
|
||||
isPlaying,
|
||||
setIsPlaying,
|
||||
setError,
|
||||
setBufferingState,
|
||||
|
@ -204,19 +205,21 @@ export const VideoDisplay: React.FC<VideoDisplayProps> = ({
|
|||
}, [src, onError, autoPlay]);
|
||||
|
||||
return (
|
||||
<video
|
||||
ref={videoRef}
|
||||
className="w-full h-full"
|
||||
poster={poster}
|
||||
controls={false}
|
||||
playsInline
|
||||
muted={isMuted}
|
||||
style={{ filter: `brightness(${brightness})` }}
|
||||
onTimeUpdate={() => {
|
||||
if (videoRef.current) {
|
||||
setCurrentTime(videoRef.current.currentTime);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<div className="relative w-full h-full">
|
||||
<video
|
||||
ref={videoRef}
|
||||
className="w-full h-full"
|
||||
poster={poster}
|
||||
controls={false}
|
||||
playsInline
|
||||
muted={isMuted}
|
||||
style={{ filter: `brightness(${brightness})` }}
|
||||
onTimeUpdate={() => {
|
||||
if (videoRef.current) {
|
||||
setCurrentTime(videoRef.current.currentTime);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue