XRFrame

The XRFrame interface of the WebXR Device API provides information needed to render a single frame of an AR/VR scene to the display. An instance of this object is passed to each call of the callback provided to XRSession.requestAnimationFrame.

Properties

session Read only
The XRSession that produced this XRFrame.

Methods

getPose() 
Returns an XRPose object representing the relationship between any two XRSpace objects.
getViewerPose() 
Returns an XRViewerPose corresponding to the viewer's pose in a given XRReferenceSpace.

Specifications

Specification Status Comment
WebXR Device API
The definition of 'XRFrame' 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
XRFrame
Experimental
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
session
Experimental
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
getViewerPose()
Experimental
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
getPose()
Experimental
Chrome No support NoEdge No support NoFirefox No support NoIE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

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

See also

tbd

Document Tags and Contributors

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