Yahoo Media Player

It may be an unwanted post, but I recently got this information while sufing through.. It is nothing but a javascript file from Yahoo. It is duty is to convery every mp3 link inside an html page into mp3 player and it also creates a playlist according the the mp3 links available.

1
<a href="http://www.sajithmr.com/wp-content/uploads/2009/08/yplayer.jpg"><img class="alignnone size-full wp-image-448" title="yplayer" src="http://www.sajithmr.com/wp-content/uploads/2009/08/yplayer.jpg" alt="" width="499" height="67" /></a>

What you have to do, is just add this js file below your html page which contains some mp3 href

1
&lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">src</span>=<span class="attribute-value">"http://mediaplayer.yahoo.com/js"</span>&gt;&lt;/<span class="end-tag">script</span>&gt;

1
You can see the demo here,if your browser supports flash

1
<a href="http://www.sajithmr.com/downloads/yplayer.html" target="_blank">http://www.sajithmr.com/downloads/yplayer.html</a>

1
Take view source to see how does it work

1
Thanks

1
Sajith

5 Comments , , , , ,

5 Responses to “Yahoo Media Player”

  1. TheAnand August 4, 2009 at 2:02 am #

    thats interesting. Can I use it to play songs from another domain? for example I have a list of songs in domainA.com/fies/mp3 but I want to create a media player in another domain domainB.com/english-songs/

    Can I use this solution for the same? Please advice. :)

  2. Sajith M.R August 16, 2009 at 3:25 pm #

    Yes Anand, You can user any mp3 url (same or different domain)

  3. Christopher August 24, 2009 at 7:03 pm #

    Thats really cool, I will have a go with that, I never thought Yahoo would do something like this.

    Thanks :)

  4. Gardening ideas September 4, 2009 at 7:03 pm #

    Just as with why are they doing away with Photo Shop and my photos have to be moved, because they can….they have to have a new marketing scheme so they do away with things we get attached to and start something new.

  5. Michail September 6, 2009 at 3:42 am #

    Hi,
    Thank you for this topic. But I have one question, in my Blog I collide
    with such problem – the play buttons move up from links in Opera brw. it’s stupidly problem, but I really can’t solve it, could you please help? I will be very gratefully.

Leave a Reply

More in general, html (26 of 60 articles)


Start jquery for manipulating html file and execute javascript just like sql queries. Simply pointer the dom object with ...