mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
19 lines
810 B
Text
19 lines
810 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://immersive-web.github.io/layers/#xrmediabindingtype
|
|
[SecureContext, Exposed=Window, Pref="dom.webxr.layers.enabled"]
|
|
interface XRMediaBinding {
|
|
[Throws] constructor(XRSession session);
|
|
|
|
[Throws] XRQuadLayer createQuadLayer(HTMLVideoElement video, XRMediaLayerInit init);
|
|
[Throws] XRCylinderLayer createCylinderLayer(HTMLVideoElement video, XRMediaLayerInit init);
|
|
[Throws] XREquirectLayer createEquirectLayer(HTMLVideoElement video, XRMediaLayerInit init);
|
|
};
|
|
|
|
dictionary XRMediaLayerInit {
|
|
required XRSpace space;
|
|
XRLayerLayout layout = "mono";
|
|
boolean invertStereo = false;
|
|
};
|