Share via


WebVR

The WebVR API provides interfaces for virtual reality (VR) hardware, enabling the building of high-quality VR experiences.

Note  Microsoft Edge's implementation may differ from the most recent version of the W3C WebVR specification. This spec has continued to evolve over time.

 

In this section

Topic Description

VRDisplayEventInit (Dictionary)

The VRDisplayEventInit dictionary initializes a VRDisplayEvent object.

VRLayer (Dictionary)

The VRLayer dictionary represents a content layer to be presented to a head mounted display (HMD).

VRStageParameters (Dictionary)

The VRStageParameters dictionary specifies the values describing the stage area for devices that support room-scale experiences.

VRDisplay

The VRDisplay object forms the base of all VR devices supported by this API, including generic information such as device IDs and descriptions.

VRDisplayCapabilities

The VRDisplayCapabilities object describes the capabilities of a VRDisplay.

VRDisplayEvent

The VRDisplayEvent object is used to represent events that occur in relation to a VRDisplay object.

VREyeParameters

The VREyeParameters interface represents all the information required to correctly render a scene for a given eye.

VRFieldOfView

The VRFieldOfView object represents a field of view with four properties specifying the degrees of view from a center point.

VRFrameData

The VRFrameData object represents the information needed to render a single frame of a virtual reality (VR) scene.

VRPose

The VRPose interface represents a sensor’s state at a given timestamp.

activeVRDisplays

Returns an array that contains every VRDisplay object that is currently presenting.

getVRDisplays

Returns a promise that resolves to an array of VRDisplay objects that are currently connected to the device.

vrdisplayconnected

Fires when a VRDisplay is connected to the device.

vrdisplaydisconnected

Fires when a VRDisplay is disconnected to the device.

vrdisplaypresentchange

Fires when the presenting state of a VRDisplay changes.