From afc032ca1c2c8ff5deca89b6790b57c2de49971f Mon Sep 17 00:00:00 2001 From: Mohammed Abad Date: Mon, 25 May 2026 02:41:46 +0100 Subject: [PATCH] feat(streaming): simplify iframe sandbox and allow attributes for better compatibility --- react_frontend/src/components/streaming/StreamingPlayer.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/react_frontend/src/components/streaming/StreamingPlayer.tsx b/react_frontend/src/components/streaming/StreamingPlayer.tsx index bd9aff0..88a7e55 100644 --- a/react_frontend/src/components/streaming/StreamingPlayer.tsx +++ b/react_frontend/src/components/streaming/StreamingPlayer.tsx @@ -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({