Yahoo! Developer Network Blog

« Previous | Main | Next »


February 8, 2008

Yahoo! Media Player release #3

There are some fairly significant and exciting changes in the new build of Yahoo! Media Player.

  1. Prettying up

    The changes that users will notice the most have to do with visible behaviors.

    1. Smaller footprint

      The player is now minimized when first loaded rather than half-open. This prevents it from taking up space in the page when it is not needed.

      Our goal is to empower the page, not overpower it. A smaller footprint helps the media and text mesh seamlessly.

    2. Steady scrolling

      The player doesn't flicker while you're scrolling anymore. Previously, if you were using any browser besides IE7, scrolling the page would cause the player to fade out and fade back in when you stopped scrolling. Now the player hovers in place while you scroll without fading in and out.

    3. Search doesn't interrupt

      The player contains a link to search on text related to the current track. This link used to open in the current window, which would interrupt playback. Interrupting playback was a bad surprise for many people. This link now opens in a new window.

    4. New home

      There is a brand spanking new home page.

      This page isn't intended to have any dynamic features. It's purpose is to draw new people into understanding the important points and to give them a smooth experience when trying out the player for the first time.

  2. Play this page

    You can now use almost any document on the web as a playlist by linking to that document and adding class="playthispage" to the link. We scrape the document to find media links and pull those links back into the current page. There will be a play button next to the class="playthispage" link, and the remote media links will be added to the current playlist.

    "Play this page" can handle many different document types. It can find enclosures in an RSS or Atom feed. It can read all common internet playlist formats, including XSPF, ASX, M3U, and PLS. It can read HTML, so you can use one web page as the playlist for another.

    Example link:
    <a href="http://www.example.com/" class="playthispage">
    play example.com
    </a>
    .

    Things you can do with this feature:

    1. A podcaster can use their feed as a playlist for their web page without needing to create an additional playlist.
    2. A musician's web site can have a single master page for all of their music and use it as the playlist for any other page in the site.
    3. A developer could mash up audio sites with other sites. For example, you could put a Wikipedia entry about a composer together with Archive.org recordings related to that composer.
    4. An XSPF playlist with artist, album, title and other metadata could be imported into HTML, which lacks music metadata fields.
    5. A playlist creator could make their playlist accessible in third party web pages which ordinarily would be hampered by cross-site scripting restrictions.

    We implemented this feature using a web service that we host. That's interesting in that it shows the benefit of our unusual architecture. Browser-based media players have traditionally been pure Flash. Our player will use anything it can get its hands on at run-time, including JavaScript, CSS, semantic HTML, web services, and, yes, Flash, and having access to our own web services made it possible to do this feature.

  3. Cross-domain XSPF

    We now have the ability to load XSPF playlists from any public source on the web. Previously we were bound by the Javascript same-origin security policy, which is even more restrictive than the Flash crossdomain.xml approach. Now we aren't bound by either.

  4. Bug fixes

    The green disc in the minimized mode of the player was pulsing even when no audio is playing. The pulsing green disc is meant to let you know when the minimized player is playing audio. It now does that.

    Safari was posting some JavaScript errors on page load. These errors shouldn't show up anymore.

    We fixed some display issues with error icons in Firefox when the player encountered a bad mp3 link. (But error messages are still in a messy state overall).

    Fixed a bug where the play button was not playing the right song. You could reproduce this bug by clicking a play button on the page, then clicking pause, then clicking a play button for a different song on the page. Rather than playing that different song, the player would restart the song that was paused.

    Browser cache time for the player JavaScript files is now one day.

The core team for this rev: Amit, Clint, Dave W, Douglas, Lino, Mike D, Suman, and William Khoe. Thanks to Mike D and Dave W for much of the text of this post, and kudos to wwhite for the scraper web service.

Posted at February 8, 2008 12:00 AM | Permalink

Bookmark this on Delicious

Comments

These are some nice improvements. The steady scrolling issue was really bugging me and prevented me from adding the player to my site. Now I'm sold. Thanks!

Posted by: Joe Lazarus at February 8, 2008 2:53 PM

Missing....Linux browser support....(FF specifically). Whats so different about it ? It works on FF with windows ?

Posted by: Jigar Shah at February 9, 2008 1:38 AM

Since I use Safari I was delighted that you addressed the bugs and resolved them.

Posted by: Vectorpedia(Rick) at February 10, 2008 9:47 AM

Hi, I upgraded to Firefox 3 beta over the weekend and ever since then the media player doesn't work for me. It just says "buffering", but the tracks never play, regardless of which site I'm on. Is it not compatible?

Posted by: Joe Lazarus at April 1, 2008 12:53 PM

Hi Joe, we'll do FF beta 3 support in the next sprint.

Posted by: Lucas Gonze at April 1, 2008 3:11 PM

Please bring back Music Match. I used it for file conversions, batch conversions, mp3 data discs, audio cd's...whatever. The Yahoo player replacement is complicated, I can't find how to convert from mp3 to wav and vica versa. Trying to learn Vista is bad enough without losing the best media player there was at the same time. I was so disappointed with the Yahoo player, I removed it from my programs. Sometimes new is not better. Yahoo player seems more interested in selling you music. I don't buy music over the internet...so all of that is useless to me but takes up a lot of space.

Posted by: Greg at May 20, 2008 7:14 AM

When I was looking at the yahoo media player I saw an article that said you could add extra attributes to link tag.
I have now implemented the player on a web site and I cannot find the article. The only bit I can find is .
Am I right that there are other attributes I could include if so where are they defined.
In the new homepage it says Picks up your images and adds them as cover art . Which image does it pick up?

Posted by: Peter Abrahams at April 12, 2009 10:40 AM

Does anyone answer the forum questions? A couple of people have asked how to play one track at a time when having more than one mp3 linked to on a page, but I am unable to see an answer. Is this possible?

Posted by: Steve at January 18, 2010 5:00 AM

Post a comment

Comment Policy: We encourage comments and look forward to hearing from you. Please note that Yahoo! may, in our sole discretion, remove comments if they are off topic, inappropriate, or otherwise violate our Terms of Service. Fields marked with asterisk '*' are required.

Remember Me?

Subscribe

YDN Blog: Get Yahoo! Developer Network Blog on your personalized My Yahoo! home page.

Add To My RSS Feed

YDN Link Blog: Get Yahoo! Developer Network Linkblog on your personalized My Yahoo! home page.

Add To My RSS Feed

Recent Readers

Copyright © 2010 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy

Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions