Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 7th October 2008, 23:44   #1
daniol
Junior Member
 
Join Date: Oct 2008
Posts: 2
How to disable automatic playlist expanding (before play)?

Hi.

I am designing a interactive radio for my Shoutcast channel. I have on a DB some music filenames.
The people can vote the songs that want to listen first.

With .httaccess I added php for M3U8 extension with
code:
AddHandler application/x-httpd-php .m3u8
php_value auto_prepend_file playlistgenerator.php


As is, when on my server is requested
http://www.example.com/radio/playlist.m3u8
php generates the playlist ordered by the songs more requested and some random

It's generated with:
PHP Code:
header("Content-Type: audio/mpegurl");
header("Content-Disposition: filename=playlist.m3u8"); 
The m3u8 file outputted seems as
code:

#EXTM3U
#EXTINF:-1,Artist 1 - Title 1
C:\Music\XXX\filenameA.mp3
#EXTINF:-1,Artist 2 - Title 2
C:\Music\YYY\filenameB.mp3
#EXTINF:-1,Artist 3 - Title 3
C:\Music\ZZZ\filenameC.mp3
#EXTINF:-1,http://www.example.com/radio/playlist.m3u8
http://www.example.com/radio/playlist.m3u8



I should play this playlist on my computer and the songs were played on my Shoutcast channel.

My idea is at the end of the reproduction of the playlist, reload it automatically for load new songs ordered with new votes.
This is why I add the last item "playlist.m3u8".

But it doesn't work, because
when I open this playlist on Winamp, Winamp expands the playlist and reload "playlist.m3u8" from the server again..., and it enters into a infinity loop.

There is any way on Winamp for disabling this automatic expanding of playlists before it's played?

I tried disabling "read metadata only when file(s) are played" but it doesn't work.

Or anyone knows another way for doing this?

Thanks a lot!
daniol is offline   Reply With Quote
Old 8th October 2008, 00:12   #2
Sawg
Forum King
 
Join Date: Jun 2000
Location: Phoenix, AZ
Posts: 7,456
Send a message via ICQ to Sawg Send a message via AIM to Sawg Send a message via Yahoo to Sawg
Not an available option.

| Brought to you by ^V ^C | The one... the original... no seriously!
Sawg is offline   Reply With Quote
Old 8th October 2008, 00:26   #3
daniol
Junior Member
 
Join Date: Oct 2008
Posts: 2
OK, I see...
And how I can do it in another way?
How can I refresh the playlist from the server before the playing has ended, any plug-in?

takk!
daniol is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump