Women in Technology

Hear us Roar



Article:
  Web Audio Lab: Three JavaScript Tricks to Spice Up Your Site
Subject:   Inline Player
Date:   2007-07-19 07:07:25
From:   mas80304
Hello:
I am trying to use the inline player but it's looking pretty awful in IE6. There was a comment in your code:
To do: Create an outer object called iePlayer with Internet Explorer parameters, then add tinyPlayer as a child.


Is this what will fix the problem? If so, can you clarify what I would need to do?


Thanks. I really appreciate this site and all your fun work!

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • David Battino photo Inline Player
    2007-07-19 12:33:33  David Battino | O'Reilly Blogger [View]

    @MAS:

    Good question. Getting embedded media to work with all the browsers is a challenge. The most common approach is to use an <object> tag for IE with a nested <embed> tag for everyone else. (See http://digitalmedia.oreilly.com/2006/09/29/two-slick-quicktime-tricks.html?page=2.) But IE can also throw an ActiveX warning unless the object is inserted via an external script. A third issue is that the minimum height for the Windows Media Player plugin is 45 pixels, whereas the QuickTime plugin can run in a more text-friendly 16 pixels.

    PlayTagger gets around the height issue by using its own Flash player, so I think the ultimate solution for playing MP3 links could be to write a Flash player with more features.

    Another approach would be to specify the QuickTime plugin using Apple's external JavaScript file (see link above). QuickTime isn't as widely supported as Flash, of course, but does play many more formats.

    Incidentally, after this article published, I did write a bookmarklet that adds an inline player to the MP3 links on any site with one click. It's been a big help. See my blog for details:

    http://blogs.oreilly.com/digitalmedia/2008/01/1-click-web-audio-player.html
    • Inline Player
      2007-07-26 12:37:27  mas80304 [View]

      Hi again. I'm very interested in your bookmarklet - it's the first I've heard of this option so would like to learn more about what you did. Can you provide a link to your blog when you get to writing this up? Thx.