From d6aa1d61547e9f0b80ef5d8568205e9fb9be1544 Mon Sep 17 00:00:00 2001 From: StarsbySea <66008060+StarsbySea@users.noreply.github.com> Date: Mon, 13 Jun 2022 11:50:13 +0800 Subject: [PATCH] support ios safari fullscreen --- components/previews/VideoPreview.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/previews/VideoPreview.tsx b/components/previews/VideoPreview.tsx index e502591..e109a6b 100644 --- a/components/previews/VideoPreview.tsx +++ b/components/previews/VideoPreview.tsx @@ -65,6 +65,7 @@ const VideoPlayer: FC<{ } const plyrOptions: Plyr.Options = { ratio: `${width ?? 16}:${height ?? 9}`, + fullscreen: { iosNative: true }, } if (!isFlv) { // If the video is not in flv format, we can use the native plyr and add sources directly with the video URL