From f9a51333d6a0d2ff2c457be31c6f329419d1bea3 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 7 Jun 2025 00:33:46 +0200 Subject: [PATCH] Improve src parameter --- src/components/Embeds/VideoPlayer.tsx | 40 ++++++++++++++------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/components/Embeds/VideoPlayer.tsx b/src/components/Embeds/VideoPlayer.tsx index c5ea94d..b8caab4 100644 --- a/src/components/Embeds/VideoPlayer.tsx +++ b/src/components/Embeds/VideoPlayer.tsx @@ -57,27 +57,27 @@ const ControlsContainer = styled(Box)` `; interface VideoPlayerProps { - src?: string; - poster?: string; - name?: string; - identifier?: string; - service?: string; autoplay?: boolean; - from?: string | null; customStyle?: any; + from?: string | null; + identifier?: string; + name?: string; + poster?: string; + service?: string; + src?: string | null; user?: string; } // TODO translate and theme (optional) export const VideoPlayer: FC = ({ - poster, - name, - identifier, - service, autoplay = true, - from = null, customStyle = {}, + from = null, + identifier, + name, node, + poster, + service, }) => { const keyIdentifier = useMemo(() => { if (name && identifier && service) { @@ -549,22 +549,22 @@ export const VideoPlayer: FC = ({ )} {((!src && !isLoading) || !startPlay) && ( { togglePlay(); }} + position="absolute" + right={0} sx={{ cursor: 'pointer', }} + top={0} + zIndex={500} > = ({