Skip to main content
Participating Frequently
March 28, 2021
Question

Audio not playing in Safari and SOME iPads

  • March 28, 2021
  • 2 replies
  • 644 views

I have a .mp3 file which is part of the timeline of a movieclip symbol and triggered from an action on a button. I play this symbol from frame 1 and then audio kicks in along with timeline and then I can stop it with another button.

However, the audio is not working in Safari desktop, works fine in Chrome/Firefox, iPhone and randomly some iPads but not others.

Anyone got any ideas?

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    April 21, 2021

    Update: Have tried several things but seems like a bug as getting security issues with Safari despite everything ok, audio seems a massive gap in Animate functionality so hopefully on the roadmap soon.

    Colin Holgate
    Inspiring
    March 28, 2021

    Does it fail when you do a test movie? What is the code like, that triggers the playback?

    Participating Frequently
    March 29, 2021

    Hello Colin, Thanks for reply, I get the same thing when I use Test Movie in Browser, works in Chrome/Firefox but not in Safari.

    I haven't written any code to trigger the playback, just added the .mp3 to a movieclip symbol which I then have a button when clicked simply plays the symbol timeline and then the audio is part of that (no animation) as the timeline rolls through, I then stop the symbol with a button which stops the audio.

    I can send you any files or links by DM if that helps.

    Participating Frequently
    March 30, 2021

    It's the code that calls PlayAudio() that matters more. How is PlayAudio() called?

     

     


    this.linkb.addEventListener("click", PlayAudio.bind(this,nsong));

     

    The button is an almost transparent link over a graphic to get the mouse to change as a link, called linkb. I don't have a down state set, only an up and then the click calls the function.

     

    Then I just used the panel in my screenshot above to link the .mp3 to the timeline of the symbol layer and then used the code to play the timeline of that symbol, it works a treat for most browsers, but not Safari??