[cvs-annodex] commit (/annodex): phpannodex/trunk/phpsrc/CGI/nph-mod_annodex.php

ctford nobody at lists.annodex.net
Thu Jan 5 15:58:05 EST 2006


Update of /annodex (new revision 1751)

Modified files:
   phpannodex/trunk/phpsrc/CGI/nph-mod_annodex.php

Log Message:
Bitrate and Duration fields in header now match the pyannodex CGI.

Modified: phpannodex/trunk/phpsrc/CGI/nph-mod_annodex.php
===================================================================
--- phpannodex/trunk/phpsrc/CGI/nph-mod_annodex.php	2006-01-05 04:55:29 UTC (rev 1750)
+++ phpannodex/trunk/phpsrc/CGI/nph-mod_annodex.php	2006-01-05 04:58:05 UTC (rev 1751)
@@ -65,7 +65,6 @@
  */
 function start_headers() {
 	echo $_SERVER['SERVER_PROTOCOL'],  ' 200 OK', "\n";
-	//header( $_SERVER['SERVER_PROTOCOL'] .  ' 200 OK');
 	echo 'Server: ', $_SERVER['SERVER_SOFTWARE'], "\n";
 	return;
 }
@@ -115,8 +114,8 @@
 		$interval->get_end());
 
 	/* Output bitrate and duration information to the headers. */
-	echo "X-Bitrate: ", $anx->get_bitrate(), "\n";
-	echo "X-Duration: ", $anx->get_duration(), "\n";
+	echo "X-Content-Bitrate-Average: ", $anx->get_bitrate(), "\n";
+	echo "X-Content-Duration: ", $anx->get_duration(), "\n";
 	echo "\n";
 
 	/* Output the file as a series of binary strings, the size of which


-- 
ctford



More information about the cvs-annodex mailing list