j-Audio
- singleton
- the component can
playandstopaudio/soundmp3 pathrepresents a volume control
Methods:
component.play(url)can play audio/sound from URLcomponent.stop(url)can stop audio/sound
Properties:
component.itemscontains all audio objects
Use it with <ui-component name="audio">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="audio" path="volume"></ui-component>
<script>
var volume = 50; // 50%
if (jComponent.is20)
SETTER('audio/play @important', 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3');
else
SETTER(true, 'audio/play', 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3');
</script>