<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7218232242203115351.post2006481594741118815..comments</id><updated>2011-11-15T10:47:26.176-07:00</updated><category term='thrift'/><category term='hackery'/><category term='exercise'/><category term='cassandra'/><category term='technology'/><category term='id3'/><category term='IM hall of fame'/><category term='javascript'/><category term='java'/><category term='vacation'/><category term='books'/><category term='apple'/><category term='programming'/><category term='christmas'/><category term='garden'/><category term='music'/><category term='mythtv'/><category term='rdio'/><category term='patents'/><category term='newspapers'/><category term='iphone'/><category term='tagfriendly'/><category term='python'/><category term='food'/><category term='casserole'/><category term='ipod'/><category term='family'/><category term='code'/><category term='football'/><category term='recipes'/><title type='text'>Comments on One Man Clapping: Hacking the Yahoo! Media Player</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.onemanclapping.org/feeds/2006481594741118815/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218232242203115351/2006481594741118815/comments/default'/><link rel='alternate' type='text/html' href='http://www.onemanclapping.org/2009/04/hacking-yahoo-media-player.html'/><author><name>Gary Dusbabek</name><uri>http://www.blogger.com/profile/02822527825865902304</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://1.bp.blogspot.com/_Uo-_9LOo8vM/SUXew2WW6TI/AAAAAAAAARE/75WQXBflL3o/s1600-R/n1275196037_8830.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7218232242203115351.post-561464720264803538</id><published>2011-11-15T10:29:10.782-07:00</published><updated>2011-11-15T10:29:10.782-07:00</updated><title type='text'>As a public service I hacked up a function that al...</title><content type='html'>As a public service I hacked up a function that allows you to programatically play tracks by title. This is useful when trying to make images play, which the player doesn&amp;#39;t seem to support.&lt;br /&gt;&lt;br /&gt;img src=&amp;quot;...jpg&amp;quot; style=&amp;quot;cursor:pointer&amp;quot; onClick=&amp;quot;play(&amp;#39;Song Title&amp;#39;)&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;function play(id){&lt;br /&gt; for(var i=0;i&amp;lt;10;i++){ // Rewind to beginning of playlist. I use a for counter just to avoid a possible infinite loop.&lt;br /&gt;    // If you have more than 10 tracks on page then increase this&lt;br /&gt;  YAHOO.MediaPlayer.previous();&lt;br /&gt;var media=YAHOO.MediaPlayer.getMetaData();&lt;br /&gt;  if(media.title==&amp;quot;First Song Title&amp;quot;) break; // Not totally necessary but if you know the title of the first song then this is clean&lt;br /&gt; }&lt;br /&gt; for(var i=0;i&amp;lt;10;i++){ // This advances the player until the track title matches the title you passed in. Then it plays the song.&lt;br /&gt;  &lt;br /&gt;  var media=YAHOO.MediaPlayer.getMetaData();&lt;br /&gt;  if(media.title==id){&lt;br /&gt;   YAHOO.MediaPlayer.play();&lt;br /&gt;   break;&lt;br /&gt;  }&lt;br /&gt; YAHOO.MediaPlayer.controller.EventManager.onNextRequest.fire();&lt;br /&gt; }&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218232242203115351/2006481594741118815/comments/default/561464720264803538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218232242203115351/2006481594741118815/comments/default/561464720264803538'/><link rel='alternate' type='text/html' href='http://www.onemanclapping.org/2009/04/hacking-yahoo-media-player.html?showComment=1321378150782#c561464720264803538' title=''/><author><name>Terry Thorsen</name><uri>http://www.blogger.com/profile/06056692124531657442</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.onemanclapping.org/2009/04/hacking-yahoo-media-player.html' ref='tag:blogger.com,1999:blog-7218232242203115351.post-2006481594741118815' source='http://www.blogger.com/feeds/7218232242203115351/posts/default/2006481594741118815' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-739461467'/></entry><entry><id>tag:blogger.com,1999:blog-7218232242203115351.post-8772829757904928880</id><published>2009-04-14T09:36:00.001-06:00</published><updated>2009-04-14T09:36:00.001-06:00</updated><title type='text'>These are valuable hacks.  If you posted a note to...</title><content type='html'>These are valuable hacks.  If you posted a note to the mailing list at http://groups.yahoo.com/group/yhoomediaplayer it would help other people to reuse your experience.&lt;br /&gt;&lt;br /&gt;About skinnability, the intent from the beginning was to empower developers to use CSS rather than Flash.  Also you can replace the standard image sprite master with your own.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218232242203115351/2006481594741118815/comments/default/8772829757904928880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218232242203115351/2006481594741118815/comments/default/8772829757904928880'/><link rel='alternate' type='text/html' href='http://www.onemanclapping.org/2009/04/hacking-yahoo-media-player.html?showComment=1239723360001#c8772829757904928880' title=''/><author><name>Lucas Gonze</name><uri>http://gonze.com/about/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.onemanclapping.org/2009/04/hacking-yahoo-media-player.html' ref='tag:blogger.com,1999:blog-7218232242203115351.post-2006481594741118815' source='http://www.blogger.com/feeds/7218232242203115351/posts/default/2006481594741118815' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1560469416'/></entry><entry><id>tag:blogger.com,1999:blog-7218232242203115351.post-3845489093219490901</id><published>2009-04-14T09:36:00.000-06:00</published><updated>2009-04-14T09:36:00.000-06:00</updated><title type='text'>These are valuable hacks.  If you posted a note to...</title><content type='html'>These are valuable hacks.  If you posted a note to the mailing list at http://groups.yahoo.com/group/yhoomediaplayer it would help other people to reuse your experience.&lt;br /&gt;&lt;br /&gt;About skinnability, the intent from the beginning was to empower developers to use CSS rather than Flash.  Also you can replace the standard image sprite master with your own.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218232242203115351/2006481594741118815/comments/default/3845489093219490901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218232242203115351/2006481594741118815/comments/default/3845489093219490901'/><link rel='alternate' type='text/html' href='http://www.onemanclapping.org/2009/04/hacking-yahoo-media-player.html?showComment=1239723360000#c3845489093219490901' title=''/><author><name>Lucas Gonze</name><uri>http://gonze.com/about/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.onemanclapping.org/2009/04/hacking-yahoo-media-player.html' ref='tag:blogger.com,1999:blog-7218232242203115351.post-2006481594741118815' source='http://www.blogger.com/feeds/7218232242203115351/posts/default/2006481594741118815' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1560469416'/></entry></feed>
