MediaAccessPolicy
Access limits for remote media materialization. Providers execute trusted code; this is not a plugin sandbox.
You are reading the v8 docsDev
InterfaceTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/media.ts:13interface MediaAccessPolicyAccess limits for remote media materialization. Providers execute trusted code; this is not a plugin sandbox.
Properties
allowPrivateNetworksoptional
allowPrivateNetworks?: booleanPermit private and loopback destinations, including redirects. Default false.
allowedHostsoptional
allowedHosts?: readonly string[]Optional exact hostname allowlist, also applied to redirects.
allowedFileRootsoptional
allowedFileRoots?: readonly string[]Authorized file roots. Default empty; roots and their parents must be administrator-owned.
maxBytesoptional
maxBytes?: numberMaximum encoded bytes per response. Default 512 MiB.
maxConcurrentoptional
maxConcurrent?: numberMaximum simultaneous streams per host. Default 32.
timeoutMsoptional
timeoutMs?: numberWhole-stream deadline in milliseconds, including DNS and connection. Default 30 minutes.