Attributes – src (Video)

Attributes – src (Video)

Displaying Videos

The same remarks as for the images are true, except that the repeat attribute is not working. The video will loop and autoplay by default. More command are available, when using the <a-assets> tag.

To display the video on a plane, please use the tag <a-video>.

Remarks

It seems, there are problems to play videos with A-Frame on the smartphone (but not on the desktop). I recommend to use videos without audio and the following configurations:

On the smartphone the videos are not playing unless there is an action to start them. autoplay does not work on smartphones, it needs an action to start or play the video.

Example

Please use the example provided.


Comments are closed.