Jump to content
  • Advertisement
Sign in to follow this  
H_o_p_s

[web] Standards-Compliant MP3 Embedded object?

This topic is 4584 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a way to embed an mp3 that is standards-compliant and works across the current browsers (IE6, Firefox, Safari, and Opera)? If there isn't one that is Standards-Compliant but works across them all I would like to see those as well. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
In theory flash would be cross-compatible - flash supports mp3, and flash can be used in most browsers (if someone doesn't have flash installed, they probably don't want to have music popping up anyway)

Share this post


Link to post
Share on other sites
Thats what I was trying to use... but then IE crapped all over it...

This is what I've come up with. It uses IFrames to 'embed' the mp3. Browsers without the capabilities to play it in the browser window will be asked to download it.

Let me know if it works for you guys. Also, a general C&C of how I went about the song list and playing the mp3...

Thanks!

Share this post


Link to post
Share on other sites
Embed's also a good way to go; it's not actually written into any standard (surprise), but it's an object that works in broswers that are easily 10 years old. Embed will play back with the default plugin for the broswer if their is one, and will display an "x" anchor if the object's unavailable.

Sometime's it's good to cheat a standard, as long as you can assure it will work (as I assure you it will with embed). By the way, embed maps directly to object inside of firefox.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!