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

    Function watchImmersiveSupport

    • Report whether immersive-vr is supported, now and whenever it changes.

      onChange is called once the first answer is in, then again after each devicechange — a headset plugged into a desktop is the case that flips it. No WebXR, or a query that rejects, counts as unsupported.

      Parameters

      • onChange: (supported: boolean) => void

      Returns () => void

      A function that stops watching.