<a-video>
Note: This documentation is for the old 0.1.0 version of A-Frame. Check out the documentation for the current 1.5.0 version
The video primitive makes it easy to add flat two-dimensional video screens to a scene. It wraps an entity that contains geometry
and material
components. The material component
uses a video texture.
Attribute | Default Value | Component Mapping |
---|---|---|
autoplay | true | <video> .autoplay |
crossOrigin | anonymous | <video> .crossOrigin |
height | 1.75 | geometry.height |
loop | true | <video> .loop |
src | None | material.src |
translate | 0 0 0 | geometry.translate |
width | 3 | geometry.width |
Examples
A basic video:
<a-video src="penguin-sledding.mp4" width="16" height="9" position="0 0 -20"></a-video> |