Remove firefox bugfix hack now that it is fixed

This commit is contained in:
Zoe Roux 2024-03-24 23:56:45 +01:00
parent 5374666ac9
commit f352085f62
No known key found for this signature in database

View File

@ -234,9 +234,8 @@ const Video = forwardRef<{ seek: (value: number) => void }, VideoProps>(function
onLoadedMetadata={() => {
if (source.startPosition) setProgress(source.startPosition / 1000);
}}
// BUG: If this is enabled, switching to fullscreen or opening a menu make a play/pause loop until firefox crash.
// onPlay={() => onPlayPause?.call(null, true)}
// onPause={() => onPlayPause?.call(null, false)}
onPlay={() => onPlayPause?.call(null, true)}
onPause={() => onPlayPause?.call(null, false)}
onEnded={onEnd}
{...css({ width: "100%", height: "100%", objectFit: "contain" })}
/>