#1 My simple modification - radio_mode

closed
nobody
None
5
2006-01-17
2005-10-29
nosferathoo
No

This Player is great - after I started using it on my
webpage (http://multiemu.net) I bump onto an idea of
adding radio-like dynamic playlist. After a 3-4 days of
work the scripts are finished from the side of normal user:
http://multiemu.net/radio

Users can request song and add comment to this request.
It is all based on XSPF Player modified by me.
Modification is simple - if additional param
'radio_mode=true' is present then XSPF Player knows
that last track of playlist is in real a new playlist
location. So when one end of one playlist - another is
loaded.

This is all added code at the begining of loadTrack()
function:

function loadTrack(){
if (radio_mode && track_index==playlist_size-1) {
playlist_url=playlist_array[track_index].location;
for (i=0;i<playlist_mc.track_count;++i) {

removeMovieClip(playlist_mc.tracks_mc["track_"+i+"_mc"]);
}
playlist_mc.track_count=0;
playlist_size=0;
track_index=0;
autoload=true;
autoplay=true;
loadPlaylist();
return(0);
}

That's all :]
The next modification I would like to add is
"disable_track_change" because on the real radio you
can't skip tracks :].

When the full script code for playlist generation will
be finished I will consider releasing it as Open Source.

Discussion

  • Fabricio Zuardi

    Fabricio Zuardi - 2006-01-02

    Logged In: YES
    user_id=1193595

    Patch accepted in version 0.2.2 of the extended and slim
    versions of the player.

     
  • Fabricio Zuardi

    Fabricio Zuardi - 2006-01-02
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.