【问题标题】:A-frame video doesn't appear in safariSafari 中不显示 A 帧视频
【发布时间】:2021-05-25 16:06:57
【问题描述】:

我正在使用 A-framearjs,并且我做了一个基于位置的网络应用程序

它在 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>

【问题讨论】:

    标签: ios video safari aframe


    【解决方案1】:

    这是我如何解决问题的: 我删除了video src属性的JS设置

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-27
      • 1970-01-01
      • 1970-01-01
      • 2017-09-29
      • 2013-06-27
      • 2020-08-29
      • 2021-12-03
      • 2022-08-03
      相关资源
      最近更新 更多