feat(streaming): simplify iframe sandbox and allow attributes for better compatibility
This commit is contained in:
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({
|
||||
|
||||
Reference in new issue
Block a user