support ios safari fullscreen

This commit is contained in:
StarsbySea 2022-06-13 11:50:13 +08:00 committed by myl7
parent cbb643ff0e
commit d6aa1d6154

View file

@ -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