Discord Player

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:13
interface MediaAccessPolicy

Access limits for remote media materialization. Providers execute trusted code; this is not a plugin sandbox.

Properties

allowPrivateNetworksoptional

allowPrivateNetworks?: boolean

Permit 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?: number

Maximum encoded bytes per response. Default 512 MiB.

maxConcurrentoptional

maxConcurrent?: number

Maximum simultaneous streams per host. Default 32.

timeoutMsoptional

timeoutMs?: number

Whole-stream deadline in milliseconds, including DNS and connection. Default 30 minutes.

On this page