Skip to main content
Known Participant
Jun 12, 2022 2:52 PM UTC
Question

HTML5 canvas audio is not heard in the browser

Hello,
with Adobe Animate in HTML5 canvas I put an audio in a frame it can be heard in play on the stage but it is not heard when I try with the browser. I tried with mp3 and wav but no browser plays it, what can be the problem?

Thank you.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    kglad
    Community Expert
    Community Expert
    Jun 12, 2022 4:41 PM UTC

    you must have user interaction (eg, a mouse click), before your browser will (thankfully) allow sounds to play.

    Translate
    Known Participant
    Jun 12, 2022 7:37 PM UTC

    Does this mean that with canvas you can't have background audio? 😞

    Translate
    kglad
    Community Expert
    Community Expert
    Jun 13, 2022 4:04 AM UTC

    no, it doesn't mean that. 

    Translate