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

    Interface ViewClampConfig

    Keeps the viewer from looking past the edge of the projection.

    Off by default: on a full sphere there is no edge to pass, and on partial coverage whether a viewer may look at the background is the application's call — an inspection page wants to see where the content stops, a piece of finished content usually does not.

    The limits follow whatever ProjectionConfig is current, so a setProjection moves them with it. A full 360° arc constrains no yaw and a full 180° arc no pitch, so a full sphere is unclamped whatever this says.

    Applies to dragging and to the arrow keys, not to a head pose: in an immersive session the view comes from the wearer's head, and a clamp that fought that would be worse than the problem. On a phone held up as a magic window, physically turning around is a head pose by another name and is likewise not constrained — only the drag is.

    interface ViewClampConfig {
        enabled: boolean;
        insetDeg?: number;
    }
    Index
    enabled: boolean

    Whether the limits apply at all.

    insetDeg?: number

    Extra margin inside the arc's edge, in degrees, on top of what the camera already needs.

    The limits stop when the edge of the view reaches the edge of the content, not its centre, so content covers the whole screen without this being set: the camera's own half-field is read off it each frame, per axis, since the horizontal half is wider than the vertical one and both move with the window. This adds to that. A total wider than the arc's half-width locks the view to the centre rather than inverting. Clamped to 0..180.