Hi, everyone! Now I have some trouble in using the audio feature.
I’ve used Hype to do H5(a popular form in China, just like the website with rich animation in mobile, most in Wechat).
An H5 project always has several pages. I often need to play the music when the first scene is loading, and add a music button in each page.
So I want to do that，when I start the H5, the music is playing, and no matter which page I click on the button the music can be paused, then I click on the button again, it played again.(also no matter which page).
I’d like to know how to do that~
Then the second is about the style of the button. We often use 2 images, A represent "play"and B represent “pause”, I want to do that, when the music is play, the imageB is showing and when I click on it to stop the music, the imageA is showing.
This file is based on a Hyper’s answer in a earlier question in the Forums, 【H5】musictest.zip (178.3 KB)
but I can’t finish the effect because of my poor coding knowledge…
Thanks for all of you!
I’m looking forward your help!
by the way, please forgive my poor English…