feat(streaming): simplify iframe sandbox and allow attributes for better compatibility

This commit is contained in:
Mohammed Abad committed 2026-05-25 02:41:46 +01:00
1 parent a928a5a995
commit afc032ca1c
1 file changed
+1 -4
@@ -5,8 +5,6 @@ import {
updateProgressFromEvent,
isConsideredWatched,
logWatchCompleted,
getServerSandboxPolicy,
getServerAllowedFeatures,
isValidEmbedUrl,
} from '@/lib/streaming';
import type { PlayerEvent } from '@/lib/streaming';
@@ -343,8 +341,7 @@ export function StreamingPlayer({
className="absolute inset-0 w-full h-full"
frameBorder="0"
allowFullScreen
sandbox={activeServer ? getServerSandboxPolicy(activeServer.id) : undefined}
allow={activeServer ? getServerAllowedFeatures(activeServer.id) : undefined}
allow="autoplay; fullscreen; picture-in-picture; encrypted-media"
onLoad={() => setIframeLoaded(true)}
onError={() => {
useStreamingStore.getState().setError({