Skip to main content
Participating Frequently
November 13, 2016
Answered

Why won't my MP3s play online when they work in CC 2016 Animate's Control Test?

  • November 13, 2016
  • 2 replies
  • 1520 views

I made a series of animations which work fine on various browsers. Now I'm trying to add music. I added a layer and imported an MP3 to the first frame of one of the animations. It plays perfectly on the timeline and with control > test. But when I publish it and use Dreamweaver to post it, there's no sound at all on either Firefox or Safari. What am I missing? Help would be much appreciated.

This topic has been closed for replies.
Correct answer Colin Holgate

I'm sorry I'm being so frustrating: I just simply don't know what you mean by a "sounds folder," or how to find it.

Do you mean I should add the MP3 to the .html or .js? Without any code around it?

I'm using Dreamweaver because that's the app I normally work with. I tried uploading with Fetch but that's just the same thing as far as I can tell.


When you publish from Animate you usually get an HTML file, a JS file, a folder of images, and a folder of sounds. If all of your animation is vector art you won't have got an images folder, but you should have a sounds folder, sat next to where the HTML and JS files are located.

2 replies

Colin Holgate
Inspiring
November 13, 2016

Some browsers, especially on mobile, require a user action before they allow sound to be played. Try putting in a Start button before you allow the animation to play.

Participating Frequently
November 13, 2016

Do you mean users would have to push a start button to begin the animation? I can't have it begin automatically? And this isn't just a question of some mobile browsers... Firefox and Safari don't play the sound on my desktop computer... but I'll try it.

Colin Holgate
Inspiring
November 13, 2016

Yes, it's a general security protection. Apple and Mozilla don't want you to unintentionally go to a web page and be force fed audio you didn't want to hear.

Another approach would be to have rewind and sound buttons, that way the animation would play in silence, but the user could touch the sound button to make sound start, or the rewind button to start the animation over again, this time with sound.

You will have experienced this kind of approach yourself, just look at all of the videos that appear in your Facebook feed.

kglad
Community Expert
Community Expert
November 13, 2016

what if you upload your animate published html and swf?  does the sound play?

Participating Frequently
November 13, 2016

How would I upload swf? Is there something I should do in Publish Settings? Or is there a way to isolate the swf? Or is that something I add on the .html or .js page in Dreamweaver?

kglad
Community Expert
Community Expert
November 13, 2016

are you creating an actionscript or canvas project?