Mateusz Leśko
Mateusz Leśko

Reputation: 1

Why video in aframe doesn't work on mobile device

I tested my web-VR app (I used Aframe). On the desktop, everything works great. But on my phone (Android OS) video don't play. Any suggestions?

Link to app: https://mateuszlesko.github.io/ElblagAFrame/video.html

<a-assets>
                    <video id="penguin-sledding" autoplay='False' loop="false" material.repeat='None' src="Elblag1945.mp4">
                  </a-assets>

                  <!-- Using the asset management system. -->
<a-video src="#penguin-sledding" width="26" height="15" position="0 0 -20"></a-video>

Upvotes: 0

Views: 1165

Answers (1)

Diego Marcos
Diego Marcos

Reputation: 4585

Mobile browsers limit video autoplay. Video playback has to be triggered by a user gesture. More info in A-Frame FAQ. Also make sure that video format and codecs are supported in your device / browser / OS version.

Upvotes: 1

Related Questions