@bitmovin/player-integration-webxr - v1.2.0
    Preparing search index...

    Type Alias BackgroundConfig

    BackgroundConfig:
        | { mode: "color"; color: string }
        | { mode: "gradient"; topColor: string; bottomColor: string }
        | { mode: "image"; url: string }

    Fills the area a partial-coverage projection does not reach.

    A discriminated union: each mode carries exactly the values it uses, so a gradient cannot be configured without both of its colors.

    Type Declaration

    • { mode: "color"; color: string }
      • mode: "color"

        A flat fill.

      • color: string

        Any CSS color the browser accepts.

    • { mode: "gradient"; topColor: string; bottomColor: string }
      • mode: "gradient"

        A vertical two-color gradient.

      • topColor: string

        Color at the zenith.

      • bottomColor: string

        Color at the nadir.

    • { mode: "image"; url: string }
      • mode: "image"

        An equirectangular image wrapped around the sky.

      • url: string

        Must be served with CORS headers the page can read.