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,
|
updateProgressFromEvent,
|
||||||
isConsideredWatched,
|
isConsideredWatched,
|
||||||
logWatchCompleted,
|
logWatchCompleted,
|
||||||
getServerSandboxPolicy,
|
|
||||||
getServerAllowedFeatures,
|
|
||||||
isValidEmbedUrl,
|
isValidEmbedUrl,
|
||||||
} from '@/lib/streaming';
|
} from '@/lib/streaming';
|
||||||
import type { PlayerEvent } from '@/lib/streaming';
|
import type { PlayerEvent } from '@/lib/streaming';
|
||||||
@@ -343,8 +341,7 @@ export function StreamingPlayer({
|
|||||||
className="absolute inset-0 w-full h-full"
|
className="absolute inset-0 w-full h-full"
|
||||||
frameBorder="0"
|
frameBorder="0"
|
||||||
allowFullScreen
|
allowFullScreen
|
||||||
sandbox={activeServer ? getServerSandboxPolicy(activeServer.id) : undefined}
|
allow="autoplay; fullscreen; picture-in-picture; encrypted-media"
|
||||||
allow={activeServer ? getServerAllowedFeatures(activeServer.id) : undefined}
|
|
||||||
onLoad={() => setIframeLoaded(true)}
|
onLoad={() => setIframeLoaded(true)}
|
||||||
onError={() => {
|
onError={() => {
|
||||||
useStreamingStore.getState().setError({
|
useStreamingStore.getState().setError({
|
||||||
|
|||||||
Reference in new issue
Block a user