Changeset 1740
- Timestamp:
- 2006-01-03 19:47:58 (3 years ago)
- Files:
-
- phpannodex/trunk/phpsrc/nph-mod_annodex.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
phpannodex/trunk/phpsrc/nph-mod_annodex.php
r1735 r1740 4 4 require_once("AnxInterval/AnxInterval.php"); 5 5 6 define( " BUFFER_SIZE", 1024);6 define( "ANX_BUFFER_SIZE", 1024); 7 7 8 8 /* Attempt to stop browsers caching the output of the script. */ … … 96 96 start_headers(); 97 97 echo "Content-Type: application/x-annodex\n"; 98 //echo "Content-Type: text/plain\n";99 echo "\n";100 98 101 99 anx_init_importers( "*/*" ); … … 113 111 114 112 anx_write_import( $anx, $filename, $id, $content_type, 115 $interval->get_start(), $interval->get_end(), (int) $flags ); 113 $interval->get_start(), 57,//$interval->get_end(), 114 (int) $flags ); 116 115 116 /* Output bitrate and duration information to the headers. */ 117 echo "X-Bitrate: ", anx_get_bitrate( $anx ), "\n"; 118 echo "X-Duration: ", anx_get_duration( $anx ), "\n"; 119 echo "\n"; 117 120 118 121 /* Output the file as a series of binary strings, the size of which 119 122 * is determined by BUFFER_SIZE. 120 123 */ 121 while( $buffer = anx_write_output( $anx, BUFFER_SIZE ) ) {124 while( $buffer = anx_write_output( $anx, ANX_BUFFER_SIZE ) ) { 122 125 echo $buffer; 123 126 } … … 128 131 } 129 132 ?> 130