<a-sound>
NOTE: This version of the documentation tracks unstable development happening on A-Frame’s
master
branch. If you wish to try it out, grab the unstable build. Otherwise, head to the documentation for the current 1.6.0 version
The sound primitive wraps the sound component.
Example
<a-scene> |
Attributes
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 |