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

New Search Engine
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

TimeStamp Column Problem...
I'm mad at my self and thinking I'm a little retarded. It just be some one mistake I'm missing here.

Upload file and add HTML
Hey everyone,

I have a client has meeting agendas and minutes that should be posted online. I

How to form a xml form table with a single sql statement..?
Hi everyone,
I don't know if this is going to be a duplicate thread but i couldn't

problems with script
I made a small script wich exchanges points in my website:


<?php
session_start

Basic Question about Threading and PHP...
I have a page that I am working on and it is taking several hours to process. The basics of what th

help need on ob_start()
Hi

I am a newbie in php, I have a code
Line number On/Off | Expand/Contract <?phpo

please help me in this update statment
hi every one

if I have table and this data in it

id name
10

Get Total From While Loop
I'm trying to get the total for each product and add them for a Grand Total to list outside the loop

Ten Operator Syntax
Hi Guys,

I can't figure out why i am getting a parse error with this basic ten op code:

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