Skip to content

🎥 Make videos programmatically with React

prettier

Jonny Burger3771f3f8a4c3
diff --git a/packages/player/src/PlayerControls.tsx b/packages/player/src/PlayerControls.tsx
index 332ea10e5b..57516711d3 100644
--- a/packages/player/src/PlayerControls.tsx
+++ b/packages/player/src/PlayerControls.tsx
@@ -125,7 +125,7 @@ export const Controls: React.FC<{
playerWidth: number;
renderPlayPauseButton: RenderPlayPauseButton | null;
renderFullscreenButton: RenderFullscreenButton | null;
- alwaysShowControls: boolean;
+ alwaysShowControls: boolean;
}> = ({
durationInFrames,
hovered,
@@ -145,7 +145,7 @@ export const Controls: React.FC<{
playerWidth,
renderPlayPauseButton,
renderFullscreenButton,
- alwaysShowControls,
+ alwaysShowControls,
}) => {
const playButtonRef = useRef<HTMLButtonElement | null>(null);
const frame = Internals.Timeline.useTimelinePosition();
@@ -187,7 +187,8 @@ export const Controls: React.FC<{
const containerCss: React.CSSProperties = useMemo(() => {
// Hide if playing and mouse outside
- const shouldShow = hovered || !player.playing || shouldShowInitially || alwaysShowControls;
+ const shouldShow =
+ hovered || !player.playing || shouldShowInitially || alwaysShowControls;
return {
...containerStyle,
opacity: Number(shouldShow),