【发布时间】:2021-05-25 16:06:57
【问题描述】:
我正在使用 A-frame 和 arjs,并且我做了一个基于位置的网络应用程序
它在 android 上运行良好问题出在 IOS safari 上
视频不显示甚至第一帧也没有出现
视频src属性用js设置
a-entity “gps-entity-place” 属性也是用 js 设置的
<a-scene vr-mode-ui="enabled: false" embedded arjs="sourceType: webcam; debugUIEnabled: false;">
<a-assets>
<img id="alpha" src="mask.png">
<video id="vid" autoplay playsinline webkit-playsinline muted loop="true"></video>
</a-assets>
<a-entity id="entityToShow" position="0 50 0" rotation="0 0 0">
<!-- Textured plane parallel to trex. -->
<a-plane id="videoPlane" material="shader:grid-glitch; map: #vid; map2: #alpha ; myOpacity : 0.5" height="6"
width="3.4" rotation="0 0 0" scale="1 1 1" look-at="#camera">
</a-plane>
</a-entity>
<a-camera id="camera" gps-camera look-controls-enabled='false' arjs-look-controls='smoothingFactor: 0.1'
rotation-reader>
</a-camera>
</a-scene>
【问题讨论】: