i've got the audio module in and working, however i can't get it to stream,

www.hedmag.co.uk/drupal,

please help. Thanks,

Stu.

Comments

coupet’s picture

Hi,

I tried the link.

seems to work with Quicktime plugin in Mozilla Firefox.

Darly

hedmag’s picture

it streams directly? or you have to download tho.

it's suppoed to do this...

http://abv.bryght.net/hj

but dosn't, can anyone help?

www.hedmag.co.uk

hedmag’s picture

anyone at all?

www.hedmag.co.uk

willistg’s picture

I wrote my own for my mp3 server at home and got streaming working so it is possible.

but you may have to do some coding to get it to work.

here's the relevant code if you want to use it. I gleaned from the media module and then compared with jinzoras logic to come up with something that works for me.

Your mileage may vary.

<?php
function _stream_file($file){
	$size = filesize($file);
	$pinfo = pathinfo($file);
	$filename = $pinfo['basename'];
	
	header("Pragma: public");
	header("Expires: 0");
	header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
	header("Cache-Control: private",false);
	header("Content-Type: audio/mp3");
	header("Content-Disposition: attachment; filename=\"$filename\";");
	header("Content-Transfer-Encoding: binary");
	header("Content-Length: ".$size);
	readfile($file);
	exit();
}
?>

Thomas G. Willis

developmenticon’s picture

Hai All

I have installed the audio module but upload module is not working proprly.
some is displaying (source file does not exist) any one may help me.(sumitm1@halosys.com)
Thanks
Sumit Kumar