Type Alias AdaptiveStreamSettings

AdaptiveStreamSettings: {
    pauseVideoInBackground?: boolean;
    pixelDensity?: number | "screen";
}

Type declaration

  • OptionalpauseVideoInBackground?: boolean

    If true, video gets paused when switching to another tab. Defaults to true.

  • OptionalpixelDensity?: number | "screen"

    Set a custom pixel density. Defaults to 2 for high density screens (3+) or 1 otherwise. When streaming videos on a ultra high definition screen this setting let's you account for the devicePixelRatio of those screens. Set it to screen to use the actual pixel density of the screen Note: this might significantly increase the bandwidth consumed by people streaming on high definition screens.