[icecast] Problems streaming just one file, yet /default works fine.
Geoff Shang
gshang at uq.net.au
Tue Aug 27 00:10:22 UTC 2002
Hi:
first off, it's probably simplest to use your webserver to serve the file.
Second, you need to use a playlist file (pls) or mpegurl (m3u) to launch
your player. I've not messed with the static streaming in icecast 1.x but
this seems to be what it is trying to do, by generating an.pls file on the
fly.
Here's a worked example. You have a webserver running. You have a file
called static.mp3 which you want to serve and it's in your documentroot.
Make a text file called static.m3u which contains the URL of static.mp3 as
follows:
http://server/static.mp3
Save this as, say static.m3u and we'll say it's in your documentroot too,
just for simplicity. Now, put a link on your webpage pointing at
http:/server/static.m3u. The m3u file will be downloaded and your player
will be launched. The player will read the URL in static.m3u and open a
connection to start streaming static.mp3.
you will need to have your webserver set to send the right MIME type for
your content. MP3 files should be audio/mpeg , M3U should be audio/mpegurl
and pls files should be audio/scpls. Of course, for this to work, you need
to have a player associated with the content type you use. The pls format
is a bit more complicated, but not a lot.
Hope this helps somewhat.
Geoff.
<p>
--
Geoff Shang <gshang at uq.net.au>
ICQ number 43634701
Make sure your E-mail can be read by everyone!
http://www.betips.net/etc/evilmail.html
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Icecast
mailing list