firefox wouldnt stream mp3 files completely from my php page


Posted on 16th Feb 2014 07:03 pm by admin

hi everyone,
I have a php file trying to read and stream mp3 files. It works fine in IE but my problem is Firefox streams only 3 seconds of them.

$direction = $row['URL'];

$path='http://'.$direction;
ob_start();

header('Content-type: audio/mpeg');
header('Content-Length: '.filesize($path)); // provide file size

header("Content-Transfer-Encoding: binary");
header('X-Pad: avoid browser bug');
header("Expires: -1");

header("Cache-Control: no-store, no-cache, must-revalidate");

header("Cache-Control: post-check=0, pre-check=0", false);


readfile($path);
ob_end_flush();


Any workaround please????

No comments posted yet

Your Answer:

Login to answer
226 Like 53 Dislike
Previous forums Next forums
Other forums

Adding Outlook 2007 items via file upload
I am looking for a way to be able to attach an Outlook item (an email message) in an ASP.NET 3.5 app

Splitting Attributes
SQL> SELECT I_NAME, substr(I_NAME,1,instr(I_NAME,'O')) "First part",

substr(I_NAME, IN

dropdown box help - open php files to textarea
Hi, I am using tinymce to edit content located in several php files. The code I attached works but i

RadioButtonList data selection
view plaincopy to clipboardprint?

Join Query Help
Hi all,

I am having problems with the below code, which we shall call 'my first join query'!

extract a file from zip file
hi,
i know how to unzip a zip file in php, but is there a way to just extract a certain file only

Reading Most Recent CSV File in Directory
I thought I had wrapped this project up, but found out that the program I use to FTP a csv file to m

Asset Transfer from One plant to another within same company code
Hi,

Please advise how to transfer one asset from one plant to another plant within same c

button.click += new eventhandler() not works in if(!ispostback)
i want to use button.clcik event in function VIewScrap() which is called in if(!ispostback) but itdo

Format timestamp from mysql
When I tried this:
Code: date("m/d/Y H:i A", $row['timestamp'])
I got 12/31/1969 18:

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash