var sceneReadyBehavior = require('../../behavior-scene/scene-ready'); var handleDecodedXML = require('../../behavior-scene/util').handleDecodedXML; var xmlCode = `<xr-scene ar-system="modes:Marker" bind:ready="handleReady"> <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded"> <xr-asset-load type="video-texture" asset-id="hikari" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/2dmarker/hikari.mp4" options="autoPlay:true,loop:true" /> </xr-assets> <xr-node wx:if="{{loaded}}"> <xr-ar-tracker mode="Marker" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/2dmarker/hikari.jpg"> <xr-mesh node-id="mesh-plane" geometry="plane" uniforms="u_baseColorMap: video-hikari" /> </xr-ar-tracker> <xr-camera id="camera" node-id="camera" position="1 1 1" clear-color="0.925 0.925 0.925 1" background="ar" is-ar-camera /> </xr-node> </xr-scene>`; Page({ behaviors:[sceneReadyBehavior], data: { xmlCode: '
' + handleDecodedXML(xmlCode) + '
' } });