收藏
回答

ios xr-ar-tracker 打开摄像头识别,返回后闪退,多次闪退后触发安全模式

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug xr-ar-tracker 微信iOS客户端 Version 8.0.52 3.6.2

https://developers.weixin.qq.com/miniprogram/dev/component/xr-frame/ar/tracker.htmlhttps://developers.weixin.qq.com/miniprogram/dev/api/xr-frame/interfaces/ICameraData.htmlhttps://developers.weixin.qq.com/miniprogram/dev/framework/xr-frame/

<xr-scene ar-system="modes:OSD" id="xr-scene" bind:ready="handleReady"> <xr-assets> <xr-asset-material asset-id="simple" effect="simple" /> <xr-asset-material asset-id="text-simple" effect="simple" /> </xr-assets> <xr-node> <block wx:for="{{ list }}" wx:key="index" wx:for-item="arItem"> <xr-ar-tracker mode="OSD" wx:for="{{ arItem.scannList }}" src="{{ item.url }}" wx:key="index" node-id="{{ item.url }}" data-id="{{ item.url }}" id="{{ item.url }}" bind:ar-tracker-switch="handleSwitch"> <xr-node wx:if="{{ arItem.suspension }}" rotation="0 180 0" mesh-shape shape-gizmo> <xr-mesh node-id="text-wrap" position="{{ arItem.nameStyle.meshPosition }}" rotation="90 0 0" scale="{{ arItem.nameStyle.meshScale }}" geometry="plane" material="simple" uniforms="u_baseColorFactor: 0.23 0.44 0.91 0.95" states="alphaMode: BLEND"> </xr-mesh> <xr-mesh node-id="text-wrap-sub" position="{{ arItem.contentStyle.meshPosition }}" rotation="90 0 0" scale="{{ arItem.contentStyle.meshScale }}" geometry="plane" material="simple" uniforms="u_baseColorFactor: 0 0 0 0.95" states="alphaMode: BLEND"></xr-mesh> <block wx:if="{{ curListItem.name == arItem.name }}"> <xr-text wx:for="{{ arItem.nameArr }}" node-id="text-name" wx:for-index='idx' position="{{ '0' + ' ' + (0.05 - (idx * 0.1)) + ' ' + '0' }}" scale="0.08 0.08 1" material="text-simple" value="{{ item }}"> </xr-text> </block> <block wx:if="{{ curListItem.name == arItem.name }}"> <xr-text wx:for="{{ arItem.contentArr }}" node-id="text-name" wx:for-index='idx' position="{{ '0' + ' ' + (arItem.contentStyle.textTopOffset - (idx * 0.1)) + ' ' + '0' }}" scale="0.06 0.06 1" material="text-simple" value="{{ item }}"> </xr-text> </block> </xr-node> </xr-ar-tracker> </block> <xr-camera id="camera" node-id="camera" position="1 1 1" clear-color="0.925 0.925 0.925 1" far="2000" background="ar" is-ar-camera></xr-camera> </xr-node> <xr-node node-id="lights"> <xr-light type="ambient" color="1 1 1" intensity="0.3" /> <xr-light type="directional" rotation="30 60 0" color="1 1 1" intensity="1" /> </xr-node> </xr-scene>
回答关注问题邀请回答
收藏

1 个回答

  • div
    div
    2天前

    这里没人回。可以进微信群里问下,应该有人遇到过,不过人太多了,只能+wx:wdmwjm ,邀请进

    2天前
    有用
    回复
登录 后发表内容