All pastes #258876 Raw Edit

Mine

public text v1 · immutable
#258876 ·published 2006-11-26 22:13 UTC
rendered paste body
----- alais-----

/mp3 {
  if ($1 == play) { /splay -cwmpq $findfile(songs,*,$r(1,$findfile(songs,*,0))) |  //echo -a 7 $insong.fname }
  if ($1 == pause) { /splay pause }
  if ($1 == start) { /splay resume }
  if ($1 == stop) { /splay stop }
  if ($1 == skip) { /splay stop | /splay -cwmpq $findfile(songs,*,$r(1,$findfile(songs,*,0)))  |  //echo -a 7 $insong.fname }
  if ($1 == seek) { var %se == $calc($2- * 60000)  |  /splay seek %se }
}

----remotes-----
Menu channel,status,menubar {
  MP3 Player
  .Play { /mp3 play }
  .Stop { /mp3 stop }
  .Pause { /mp3 pause }
  .Resume { /mp3 start }
  .Seek { var %sek = $calc($$?="Minute:" * 60000)  |  /splay seek %sek }
  .Skip { /mp3 skip }
}
on 1:MP3END:{
/echo -a 10Finished playing $filename
/splay -cwmpq $findfile(songs,*,$r(1,$findfile(songs,*,0)))  |  /echo -a 4 Now Playing $insong.fname 
}