Interface PlayerConfig

An interface describing the available configuration options for a new player instance.

Hierarchy

  • PlayerConfig

Properties

isQualitySupported?: ((q) => boolean)

Type declaration

    • (q): boolean
    • Beta

      Note: This API is experimental and may change in a future release.

      A function which keeps or removes a quality from the player. This function runs after the player filters the quality list internally. For example, after we remove qualities with unsupported codecs.

      If true, the quality remains available.

      If false, the quality will not be auto selected, cannot be manually selected, and will not be returned by getQualities.

      Parameters

      Returns boolean

logLevel?: LogLevel

Deprecated

This can be set after construction using setLogLevel.

serviceWorker?: ServiceWorkerConfig

Contains details about the service worker configuration.

wasmBinary: string

URL where the amazon-ivs-wasmworker.min.wasm file is hosted. This option is only supported by the NPM distribution of the player.

wasmWorker: string

URL where the amazon-ivs-wasmworker.min.js file is hosted. This option is only supported by the NPM distribution of the player.

Generated using TypeDoc