-audio preview now works in firefox!! CC-1707
This commit is contained in:
parent
eeaa7da6f5
commit
815509eb70
7 changed files with 131 additions and 29 deletions
|
@ -69,6 +69,7 @@ class ApiController extends Zend_Controller_Action
|
|||
$fp = fopen($filepath, 'rb');
|
||||
$mtype = '';
|
||||
|
||||
/*
|
||||
// magic_mime module installed?
|
||||
if (function_exists('mime_content_type')) {
|
||||
$mtype = mime_content_type($file_path);
|
||||
|
@ -81,7 +82,15 @@ class ApiController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
//header("Content-Type: $mtype");
|
||||
header("Content-Type: audio/mpeg");
|
||||
*/
|
||||
|
||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||
if ($ext == "ogg")
|
||||
header("Content-Type: audio/ogg");
|
||||
else if ($ext == "mp3")
|
||||
header("Content-Type: audio/mpeg");
|
||||
|
||||
|
||||
header("Content-Length: " . filesize($filepath));
|
||||
//header('Content-Disposition: attachment; filename="'.$media->getRealMetadataFileName().'"');
|
||||
fpassthru($fp);
|
||||
|
|
|
@ -34,6 +34,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
$this->view->headScript()->appendFile('/js/contextmenu/jjmenu.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/jplayer/jquery.jplayer.min.js');
|
||||
|
||||
$this->view->headLink()->appendStylesheet('/css/contextmenu.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue