Changeset 1758
- Timestamp:
- 2006-01-08 17:22:30 (3 years ago)
- Files:
-
- phpannodex/trunk/phpsrc/CGI/nph-mod_annodex.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
phpannodex/trunk/phpsrc/CGI/nph-mod_annodex.php
r1756 r1758 98 98 $cmml_filename = $filename_root . ".cmml"; 99 99 100 /* Spit it straight out . */100 /* Spit it straight out, removing the src attribute from imports. */ 101 101 $xml = simplexml_load_file( $cmml_filename ); 102 103 //var_dump( $xml ); 104 unset ($xml->stream); 105 102 foreach( $xml->stream->import as $import ) { 103 unset( $import['src'] ); 104 } 106 105 echo $xml->asXML(); 107 106 … … 113 112 114 113 $filename = $filename_root . ".ogg"; 114 $cmml_filename = $filename_root . ".cmml"; 115 115 116 116 try { … … 133 133 $clip = $query_array['clip']; 134 134 135 $anx->import( $ filename, $id, $content_type, $interval->get_start(),136 $interval->get_ end());135 $anx->import( $cmml_filename, $id, $content_type, 136 $interval->get_start(), $interval->get_end()); 137 137 138 138 /* Output bitrate and duration information to the headers. */