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

    Module webxr

    Immersive video playback for the Bitmovin Web Player: 360°, 180° and partial dome projections, monoscopic or stereoscopic, rendered through A-Frame.

    The application creates and configures the player; BitmovinWebXR attaches to it, hands it a video element of its own, and renders that element onto a projection surface in an <a-scene>.

    <div id="player-container"></div>

    <a-scene id="scene">
    <a-camera id="cam" position="0 0 0" wasd-controls-enabled="false"></a-camera>
    </a-scene>

    Leave the player container unstyled. The player moves the integration's video element into it, and Safari's native HLS limits the quality to the element's rendered size.

    import "aframe";
    import { Player } from "bitmovin-player";
    import { BitmovinWebXR } from "@bitmovin/player-integration-webxr";

    const container = document.getElementById("player-container");
    const scene = document.getElementById("scene");
    if (!container || !scene) {
    throw new Error("index.html is missing #player-container or #scene.");
    }

    const player = new Player(container, { key: "YOUR-PLAYER-KEY", ui: false });

    const xr = await BitmovinWebXR.create(player, scene, {
    projection: { horizontalDeg: 360, verticalDeg: 180 },
    stereo: { layout: "mono" },
    background: { mode: "color", color: "#101018" },
    });

    await player.load({ hls: "https://example.com/stream.m3u8" });

    create() must run before the player loads its first source, and resolves once the scene has loaded. It rejects rather than waiting forever on a scene that never does.

    WebXREvent
    BitmovinWebXR
    FrameStateChangedEvent
    PointerMissEvent
    WebXREventMap
    PanGuardConfig
    ProjectionConfig
    Orientation
    StereoConfig
    VideoSampling
    ViewClampConfig
    OrientationSmoothingConfig
    BitmovinWebXRConfig
    InputConfig
    ReticlePaint
    GazeReticleStyle
    CaptionsConfig
    ProjectionUpdate
    InputChangedEvent
    DeviceOrientationPermission
    StereoLayout
    DesktopEye
    ThreeVector3
    ThreeTexture
    ThreeMatrix4
    BackgroundConfig
    DeepReadonly
    InputModel
    InputToggle
    GazeReticleVisibility
    FullInputConfig
    InputState
    RAY_TARGET_CLASS
    DRAG_TARGET_CLASS
    RAY_SURFACE_CLASS
    PAN_GUARD_COMPONENT
    PAN_GUARD_CLASS
    DEFAULT_PROJECTION
    DEFAULT_STEREO
    DEFAULT_BACKGROUND
    DEFAULT_INITIAL_VIEW
    DEFAULT_VIEW_CLAMP
    DEFAULT_ORIENTATION_SMOOTHING
    DEFAULT_GAZE_RETICLE
    DEFAULT_INPUT
    DEFAULT_CAPTIONS