After preloader.gif ends, I want to start the sound right in frame 0. But it display only image, no sound. How can I set it up?
Gif can not have sounds in them.
You've misunderstood me, what I mean is I make canvas animation with preloader is a gif. After preloading done, my canvas animation run but without sound.
Ok. Makes sure your sound it's sent to stream. And see if that fixes the issue.
Stream sound didn't fix it. The sound didn't start right away and when I press the screen, sound start in the middle. I think I can fix it by making a button in frame 0 and press it before running the rest animation.
Anw, I wonder if this is the only to fix.
I think it's the only fix. Many browsers require a user action to start sound playing. Whatever they clicked on, to get to the loader, to then load the animation and play it, is too disconnected from the user action. I'm sure that if you require a press to start the animation with its sound, the sound should work.