Re: Streaming audio

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Streaming audio
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126373@lists.php.net to get a copy of this message
On Wed, 27 Nov 2002, Tom Culpepper wrote: I had no idea this would be of interest to so many people... I've now posted it on a server for download; it's at http://kyhm.com/tmp/mp3-example.php.gz for anyone who's interested. There's a bunch of commented-out calls to a dprint() in the script; this is a function I use for syslog-based debugging. Obviously you can't print debugging output to a MPEG stream! A replacement could be cobbled together that looks something like this: $dprint_file = ''; function dprint ($msg) { global $dprint_file; if (!$dprint_file) $dprint_file = fopen("/tmp/mp3.log", "a"); fprintf ($dprint_file, "%s", $msg); } Good luck, and if anyone makes something useful out of this, I'd like to hear about it! -- Morgan Hughes C programmer and highly caffeinated mammal. kyhm@kyhm.com ICQ: 79293356

« previous php.general (#126373) next »