Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
support ios safari fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
StarsbySea authored and myl7 committed Jul 15, 2022
1 parent cbb643f commit d6aa1d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/previews/VideoPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit d6aa1d6

@vercel
Copy link

@vercel vercel bot commented on d6aa1d6 Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.