User Feedback :: New Media player in .9.0



Here is a small script that can be used to play *.pls files in DSL version 0.9

Copy and paste the text below into mp or pw and save as a text file, following the included instructions.  Hope this helps.

Code Sample
#!/bin/bash
#
# playpls Decodes the first stream in a PLS file and
# plays it via the mpg321 command line mp3
# player.  Code shamelessly stolen from a
# script in the streamripper.sourceforge.net
# forums.
#
# Save this script as a text file
# named playpls and then type:
# chmod 755 playpls
#
# To use type:
# ./playpls plsfilename.pls
# or associate it to .pls filetype in your
# web browser settings.
#
# To stop the music from playing, open an
# xterminal window and type:
# killall -9 mpg321

plsf="$1"
url="`cat "$plsf"|grep File1|cut '-d=' -f2`"
mpg321 $url
exit

Also, look for further enhancements to the media player.  I will build as much functionality into it as possible.
How do you play just a plain old music CD?  I can't figure out how to get ASCD to do anything.    (Note: I booted off of a USB stick so I could have the use of the CDROM)
OK... figured it out....I was just impatient for it to load and be recognized.....
i have a little problem with "media.flua"
if i start i get:
Quote
error: bad argument #1 to `read' (string expected, got nil)
stack traceback:
  1:  function `read' [C]
  2:  main of file `/usr/local/bin/media.flua' at line 104

i looked inside media.flua
from line 98: i removed the last &
now it works.

btw how do i cut from MP and paste into Firefox?

Next Page...
original here.