Improve fullscreen support for CloudflareStreamPlayer and VideoPlayer components

- Add missing `webkitallowfullscreen` attribute in CloudflareStreamPlayer
- Enhance VideoPlayer to detect iOS devices and use `webkitEnterFullscreen` when available
- Adjust fullscreen state setting to account for WebKit-specific fullscreen elements
This commit is contained in:
Nikita
2025-12-23 14:07:53 -08:00
parent 4a6b510a5e
commit 15b92cc16b
2 changed files with 20 additions and 2 deletions

View File

@@ -42,6 +42,9 @@ export function CloudflareStreamPlayer({
if (!iframe.hasAttribute("allowfullscreen")) {
iframe.setAttribute("allowfullscreen", "")
}
if (!iframe.hasAttribute("webkitallowfullscreen")) {
iframe.setAttribute("webkitallowfullscreen", "")
}
return true
}