Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Working with Audio in HTML5 Canvas document?

$
0
0

Hi, all!

I need some advice on controlling audio in an HTML5 interaction. There don't appear to be any "code snippets" to do with audio, and I need to create buttons that control the playback of an the sounds in the piece. I managed to track down some code that's allowed me to set up buttons to play and stop sounds.What I need to make is a start button that will play the sound, hide itself, show a stop button in its place, then, once the sound is over, show itself again and hide the stop button. What's the best way to arrange this?

 

Thanks!

Patrick


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>