This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The XRSessionMode enum of WebXR API defines the possible values for session modes.


This value indicates that the rendered image output will be shown as an element in a regular HTML document on a flat surface. Inline sessions can be displayed as a mono or stereo image and might have or not have viewer tracking. This type of session does not require special hardware and should be supported by most User Agents that support WebXR API.
This value indicates that the rendered session will be displayed in an immersive XR device in VR mode (is not intended to be blended with the surrounding environment). The XRSession.environmentBlendMode is expected to be "opaque" if possible, but might be "additive" if the hardware requires it.


Specification Status Comment
WebXR Device API
The definition of 'XRSessionMode' in that specification.
Working Draft Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.XRSessionMode" (depth: 1) to the MDN compatibility data repository.

Document Tags and Contributors

Contributors to this page: bershanskiy
Last updated by: bershanskiy,