This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Tara Chandi
Posted Apr 30 - Read on Facebook

I'm trying to add a small piece of audio to my Framer prototype. Can anyone help me?

2 Comments

Aalok Trivedi

I think you need to import it as a video mp4. And just hide the layer and use the video controls and methods.

Nick Simonson

a = new Audio("path/to/audio")
a.play()

With just this code every time Framer refreshes it would call 'play' which could be at bit... cacophonous. Just call 'play' or 'pause' when you need it.

Read the entire post on Facebook