mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
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:
@@ -42,6 +42,9 @@ export function CloudflareStreamPlayer({
|
||||
if (!iframe.hasAttribute("allowfullscreen")) {
|
||||
iframe.setAttribute("allowfullscreen", "")
|
||||
}
|
||||
if (!iframe.hasAttribute("webkitallowfullscreen")) {
|
||||
iframe.setAttribute("webkitallowfullscreen", "")
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user