Enables devs to create 360掳 video players.
Features should be in line with what we had in pre-refactor <vr-video> and <vr-video360> components, and with the HTML5 <video> spec.
Dev can specify:
Please add anything missing from the above. Looking at the <video> element spec, I'm not sure how important autobuffer, crossorigin, and poster are, for example.
While the image is loading, nothing is visible. Should look at adding preloaders and/or placeholders in the future.
Controls can be limited to a play/pause toggle initially. Longer term we can imagine adding:
Dependent on https://github.com/MozVR/vr-markup/issues/249
This is done.
Hi @cvan , I tried to add the controls attribute to video element which is used as the texture for a-videosphere, but it seems the video controls are not displayed? my code is as below:
<html>
<head>
<title>My A-Frame Scene</title>
<script src="node_modules/aframe/dist/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<video id="antarctica" autoplay loop="true" controls src="video/MaryOculus.webm"/>
</a-assets>
<!-- Using the asset management system. -->
<a-videosphere src="#antarctica"></a-videosphere>
</a-scene>
</body>
</html>
Can you please advice where was wrong?
Most helpful comment
Hi @cvan , I tried to add the
controlsattribute tovideoelement which is used as the texture fora-videosphere, but it seems the video controls are not displayed? my code is as below:Can you please advice where was wrong?