Playing Audio with <audio> tags in Flare

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
ghillerson
Propeller Head
Posts: 85
Joined: Wed Mar 05, 2014 10:22 pm
Location: Near Santa Cruz, CA
Contact:

Playing Audio with <audio> tags in Flare

Post by ghillerson »

Just had a go-round with Flare support, and we learned the answer I needed for playing audio files in Flare topics, with cross-browser, cross-OS compatibility.

I had tried using the Insert Multimedia facility in Flare to pull in little MP3 "players," which worked in Firefox and IE, but not in Chrome on Windows (at least not on 64-bit Chrome) and not in Safari or Chrome on the Mac.

I then tried using html <audio> tags as documented for HTML, but Flare would not parse them. The solution is to use the XML syntax for <audio> tags, which is slightly different than HTML syntax. This works great in Flare, and the MP3s play in IE on Windows, in Safari on Macs, and in Chrome or Firefox on either OS. Also in Chrome and Safari on my iPhone and iPad.

The correct syntax is: <audio controls="true" src="[mp3 file path]"></audio>

Thanks to Bobby in support for sleuthing this out!

- Gary
Post Reply