LaFundicioSoundMap/modules/module.jplayer.php

35 lines
763 B
PHP
Raw Permalink Normal View History

2017-12-26 16:23:56 +01:00
<?php
class sm_jPlayer extends SoundMap_Player{
var $capabilities;
var $options;
function sm_jPlayer(){
$this->_load_capabilites();
}
function _load_capabilites(){
$capabilities = array();
$capabilities['playLists'] = TRUE;
}
function print_audio_content($files, $id){
$playlist = FALSE;
$total_files = count($files);
if (!$total_files)
return;
if ($total_files>1)
$playlist = TRUE;
$out = "";
$out = jplayer_insert($files, $id, TRUE);
//$out_script = '<script type="text/javascript">'. $AudioPlayer->footerCode . '</script>';
return $out; // . $out_script;
}
}