![]() |
Streaming MP3 data from ASX/PHP gives error syncing
Hi,
On a website I have a PHP file that will generate a ASX file dynamically. In this file, the value of the 'href' attribute is also a PHP file that stream the MP3 data: <?php header("Cache-control: public"); header("Content-Disposition: filename=playlist.asx"); header("Content-Type: audio/x-ms-asf;"); ?> <asx version="3"> <entry> <ref href="senddata.php?file=<?php print $mp3file; ?>" /> </entry> </asx> ?> On this manner I can generate a stream of MP3 instead of 'downloading' the MP3. With Windows Media Player will this works. But when I put the URL of this PHP file in Winamp, it won't work. The error message of Winamp is: error syncing to stream. When I open the URL of 'href' directly in Winamp, then I works. Also without the MP3 of 'href' insted of PHP will it work also. But not on this manner. So, how can I do this to run? What do I wrong? Thank you. |
| All times are GMT. The time now is 03:22. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.