TrackResume
An example of the finished product is being used on this site
This is my 1st installment to the Yahoo Media Player.
You can find other extensions here.
TrackSeek.
TrackShuffle.
TrackLoop.
TrackFocus.
I use a media player on my site for listening to my music wherever I am. For the longest time I was using the flash based version from Lacy Morrow. At some point I wanted to have more than one playlist and so the search began for an alternative that had basically the same features. It needed the following criteria to be met in order for me to use it.
- small UI footprint
- xspf playlist support
- autostart
- autoresume
My search turned up only disappointment. Then someone at work suggested I give Yahoo's MediaPlayer a try. They suggested EasyListener, but as I searched for this I found a gem; (Y)ahoo (M)edia (P)layer. YMP had everything I wanted excpet that it did not support resuming tracks from page to page. This was a crucial feature I had become dependent on over the years from using Lacy's jukebox.
I read the threads and found that the team was working on this feature, but had no ETA on a good solution. And then... came... trackResume.
This is a little script I wrote that provides track seek recording and resuming. There is obviously a gap in the music when a page reloads, but this is as close as you're going to get without having something running in the browser itself or a frame.
OK, so let's get to it.
Step 1) grab these files and drop them on your host
Both of these files need to be included after the Yahoo Media Player. The file ‘ef.ymp.utilities.js’ is needed for manipulating cookies, setting styles, and using MD5 hashes to store UIDs for the tracks.
<script src="http://github.com/oxchronxo/YMP/raw/master/ef.ymp.utilities.js" type="text/javascript"></script> <script src="http://github.com/oxchronxo/YMP/raw/master/ef.ymp.trackResume.js" type="text/javascript"></script>
2008-12-21
Corrected problem where pressing pause then play would cause the song to start from the beginning.
2009-01-06
Volume now remains at the last point you adjusted it when resuming tracks.
Pages
Categories
Tag cloud
Links
Recent Comments
Josh: Thank you, curious as to if this stays updated or not.
oxchronxo: I haven’t looked into it in awhile. I’m thinking maybe flash must buffer the entire song...
oxchronxo: Thanks for catching the Fup. I guess it’s been that way for awhile, maybe a month or more. Turns...
Aaron Fooshee: I can’t read the comments. I see there are 27 comments and portions of them show up in the...
Aaron Fooshee: Just what i was looking for. Thanks. P.S. Your script declarations above are missing a &rt; after...
Recent Trackbacks
- chronx: Playlist.com + YQL + PHP = true XSPF
- chronx: I went the medibuntu route to get w32codecs and all that but that didn't help. BTW… the medibunti...
- The Fehrenbacher’s: Playlist.com + YQL + PHP = true XSPF
- 4 Free Audio Players to Add Audio to Your Site by ClintLalonde.net: Eric has written a number of...
December 31st, 2008 - 12:41
Nice work! Have you had any luck getting ymp with xspf playlists to work in Internet Explorer? I love the player, but I would rather load a playlist than have a play button by each track.
June 12th, 2009 - 09:13
OK, cool idea, just what I need. So I followed “Step 1,” saved the code on my server, added the script after the YMP reference in the page. The music on the front page starts up fine, and if I go away to another page, it resumes when I come back. But if I go to another page, it stops playing. Tried putting the code on the other page (“Music and Notes” if you want to try it), but that didn’t seem to work either. Did I maybe miss a “step 2″?