Note: This documentation is for the old 1.0.0 version of A-Frame. Check out the documentation for the current 1.6.0 version

The sound primitive wraps the sound component.


<a-sound src="src: url(click.mp3)" autoplay="true" position="0 2 5"></a-sound>


Attribute Component Mapping Default Value
autoplay sound.autoplay false
loop sound.loop false
on sound.on null
src sound.src null
volume sound.volume 1