为什么微信小程序xr-frame ar开机第一次打开小程序或者清除了微信缓存进去没摄像头画面,重新进才会有摄像头画面, 基础库3.7 3.8
小米13 报错信息:
报错WAServiceMainContext.js:1 SystemError (webviewScriptError)
Cannot read properties of undefined (reading 'isSupportARImplType')
TypeError: Cannot read properties of undefined (reading 'isSupportARImplType')
at lZe.isSupport (WAServiceMainContext.js:1:2265568)
at Object.hZe [as isVKSupport] (WAServiceMainContext.js:1:2276925)
at t.onAdd (WAXRFrameRenderContext.js:1:1293136)
at e._added (WAXRFrameRenderContext.js:1:892540)
at e._added (WAXRFrameRenderContext.js:1:900133)
at e._appendChild (WAXRFrameRenderContext.js:1:903007)
at e.appendChild (WAXRFrameRenderContext.js:1:954814)
at (WAXRFrameRenderContext.js:1:1402396)
at w (WAXRFrameRenderContext.js:1:1402668)
at f.insertChildToElement (WAXRFrameRenderContext.js:1:1403874)
errorReport @ WAServiceMainContext.js:1
(anonymous) @ WAServiceMainContext.js:1
flushBlocked @ WAXRFrameRenderContext.js:1
unblock @ WAXRFrameRenderContext.js:1
ts @ WAXRFrameRenderContext.js:1
doInitRender @ WAXRFrameRenderContext.js:1
r @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
initRender @ WAXRFrameRenderContext.js:1
renderPage @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
r @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
notify @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
J @ WAXRFrameRenderContext.js:1
Z @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
_privEmit @ WAXRFrameRenderContext.js:1
emit @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
_privEmit @ WAXRFrameRenderContext.js:1
emit @ WAXRFrameRenderContext.js:1
(anonymous) @ WAXRFrameRenderContext.js:1
subscribeHandler @ WAXRFrameRenderContext.js:1
(anonymous) @ WAServiceMainContext.js:1
P @ WAServiceMainContext.js:1
postMessage @ WAServiceMainContext.js:1
L @ WAServiceMainContext.js:1
(anonymous) @ WAServiceMainContext.js:1
on @ WAServiceMainContext.js:1
un @ WAServiceMainContext.js:1
vdSync @ WAServiceMainContext.js:1
_e @ WASubContext.js:1
(anonymous) @ WASubContext.js:1
n @ WASubContext.js:1
s @ WASubContext.js:1
Promise.then (async)
n @ WASubContext.js:1
s @ WASubContext.js:1
(anonymous) @ WASubContext.js:1
(anonymous) @ WASubContext.js:1
(anonymous) @ WASubContext.js:1
pe @ WASubContext.js:1
de @ WASubContext.js:1
(anonymous) @ WASubContext.js:1
(anonymous) @ WAServiceMainContext.js:1
(anonymous) @ WAServiceMainContext.js:1
_emit @ WAServiceMainContext.js:1
emit @ WAServiceMainContext.js:1
dispatch @ WAServiceMainContext.js:1
cb @ WAServiceMainContext.js:1
cb @ WAServiceMainContext.js:1
Show 10 more frames
WAServiceMainContext.js:1 SystemError (webviewScriptError)
该功能暂不维护,如有 AR 需求,可使用 VisionKit 视觉能力
强烈建议官方继续维护xr-frame!!!