XRFrame.session

An XRFrame object's read-only session property returns the XRSession object that generated the frame.

Syntax

var xrSession = xrFrame.session;

Value

A XRSession object representing the WebXR session for which this XRFrame describes the object positions and orientations.

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
session
Experimental
Chrome Full support 79Edge Full support 79Firefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android Full support 79Firefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android Full support 11.2

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.