Questo sito utilizza cookie. Chiudendo questo banner, scorrendo questa pagina o cliccando qualunque suo elemento acconsenti all’uso dei cookie. Se vuoi saperne di più o negare il consenso a tutti o ad alcuni cookie vai alla sezione Cookie Policy.

id; $document = JFactory::getDocument(); $disable_jquery = $params->get('disable_jquery') ? 'true' : 'false'; $jqtheme = $params->get('jqtheme'); if($jqtheme != -1) { $document->addStyleSheet($libpath.'themes/'.$jqtheme.'/jq-ui.css'); } $document->addStyleSheet($libpath.'player-controls.css'); //Massive script library loading if($disable_jquery == 'false') { $document->addScript('//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'); } $document->addScript($libpath.'jq-ui-no-mtool-conflict.js'); //$document->addScript('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js'); $document->addScript($libpath.'a11y-slider.ext.js'); $document->addScript($libpath.'player.swf','application/swf'); $document->addScript($libpath.'mm.full.min.js'); $document->addScript($libpath.'playlist.js'); $document->addScript($libpath.'jmefs.swf','application/swf'); $document->addScript($libpath.'fullwindow.js'); $document->addScript($libpath.'useractivity.js'); // $document->addScriptDeclaration(" jQuery(function($){ $('#cmse-media-player') .jmeControl({ addThemeRoller: true, volumeSlider: { range: 'min', mutestate: true }, timeSlider: { range: 'min' } }) .bind('useractive', function(){ $('div.media-controls', this).stop().animate({opacity: 1}); }) .bind('userinactive', function(){ $('div.media-controls', this).stop().animate({opacity: 0}); }) .find('div.media-controls') .css('opacity', 0); }); "); //params $wrapper_width = $params->get('wrapper_width'); $wrapper_height = $params->get('wrapper_height'); $plpos = $params->get('playlist_position', 'right'); $plsize = $params->get('playlist_size'); $plimg = $params->get('plimg'); $tool_tip = $params->get('tool_tip'); $auto_start = $params->get('auto_start') ? 'true' : 'false'; if($auto_start == 'true') {$auto_start = 'autoplay="autoplay"';} $player_logo = $params->get('player_logo'); if(!empty($player_logo)) {$player_logo = '';} //Playlist setup if($plpos == 'right' && $tool_tip == 'no') { $plset = 'width: '.$plsize.'px; height: '.$wrapper_height.'px; float: right;'; $vidsize = 'width: '.($wrapper_width-$plsize).'px; height: '.$wrapper_height.'px;'; }else if($plpos == 'right' && $tool_tip == 'yes') { $plset = 'width: '.($plimg+16).'px; height: '.$wrapper_height.'px; float: right;'; $vidsize = 'width: '.($wrapper_width-$plimg-16).'px; height: '.$wrapper_height.'px;'; } if($plpos == 'bottom') { $plset = 'height: '.$plsize.'px; width: '.$wrapper_width.'px;'; $vidsize = 'width: '.$wrapper_width.'px; height: '.($wrapper_height-$plsize).'px; float: none;'; } if($plpos == 'none') { $plset = 'height: 0; width: 0; float: none;'; $vidsize = 'width: '.$wrapper_width.'px; height: '.$wrapper_height.'px; float: none;'; } //Style sheet $document->addStyleDeclaration(' #cmse-media-player {width: '.$wrapper_width.'px; height: '.$wrapper_height.'px; background: #'.$params->get('wrapper_bg').';} #cmse-media-player .playlist {'.$plset.'} #cmse-media-player video, #cmse-media-player .video-box {'.$vidsize.'} #cmse-media-player .play-item img {width: '.$plimg.'px; height: '.(420/640*$plimg).'px;} '); //jQuery UI them override for the playlist display $pltheme_override = $params->get('pltheme_override'); if($pltheme_override == 'yes') { $document->addStyleDeclaration(' #cmse-media-player .play-item.ui-state-default { background-image: -ms-linear-gradient(top, #444444 0%, #222222 100%); background-image: -moz-linear-gradient(top, #444444 0%, #222222 100%); background-image: -o-linear-gradient(top, #444444 0%, #222222 100%); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444444), color-stop(1, #222222)); background-image: -webkit-linear-gradient(top, #444444 0%, #222222 100%); background-image: linear-gradient(to bottom, #444444 0%, #222222 100%); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr="#444444", endColorstr="#222222"); } #cmse-media-player .play-item.ui-state-default { border: 0; border-bottom: 1px solid #111111; } #cmse-media-player .play-item.ui-state-active { background: #ffcc00; } #cmse-media-player .play-item.ui-state-active a { background: #ffcc00; color: #900000 !important } '); } //Playlist settings needs work to eliminate so many lines $video1thumb_url = $params->get('video1thumb_url'); $video2thumb_url = $params->get('video2thumb_url'); $video3thumb_url = $params->get('video3thumb_url'); $video4thumb_url = $params->get('video4thumb_url'); $video5thumb_url = $params->get('video5thumb_url'); $video6thumb_url = $params->get('video6thumb_url'); $video7thumb_url = $params->get('video7thumb_url'); $video8thumb_url = $params->get('video8thumb_url'); $video9thumb_url = $params->get('video9thumb_url'); $video10thumb_url = $params->get('video10thumb_url'); $video11thumb_url = $params->get('video11thumb_url'); $video12thumb_url = $params->get('video12thumb_url'); //Default poster image if nothing is detected $defimg = $params->get('defimg'); //option to use local or remote image if(empty($video1thumb_url) && is_null($params->get('video1thumb'))) {$vid1thm = $defimg;} elseif(!empty($video1thumb_url)) {$vid1thm = $video1thumb_url;} else {$vid1thm = $params->get('video1thumb');} if(empty($video2thumb_url) && is_null($params->get('video2thumb'))) {$vid2thm = $defimg;} elseif(!empty($video2thumb_url)) {$vid2thm = $video2thumb_url;} else {$vid2thm = $params->get('video2thumb');} if(empty($video3thumb_url) && is_null($params->get('video3thumb'))) {$vid3thm = $defimg;} elseif(!empty($video3thumb_url)) {$vid3thm = $video3thumb_url;} else {$vid3thm = $params->get('video3thumb');} if(empty($video4thumb_url) && is_null($params->get('video4thumb'))) {$vid4thm = $defimg;} elseif(!empty($video4thumb_url)) {$vid4thm = $video4thumb_url;} else {$vid4thm = $params->get('video4thumb');} if(empty($video5thumb_url) && is_null($params->get('video5thumb'))) {$vid5thm = $defimg;} elseif(!empty($video5thumb_url)) {$vid5thm = $video5thumb_url;} else {$vid5thm = $params->get('video5thumb');} if(empty($video6thumb_url) && is_null($params->get('video6thumb'))) {$vid6thm = $defimg;} elseif(!empty($video6thumb_url)) {$vid6thm = $video6thumb_url;} else {$vid6thm = $params->get('video6thumb');} if(empty($video7thumb_url) && is_null($params->get('video7thumb'))) {$vid7thm = $defimg;} elseif(!empty($video7thumb_url)) {$vid7thm = $video7thumb_url;} else {$vid7thm = $params->get('video7thumb');} if(empty($video8thumb_url) && is_null($params->get('video8thumb'))) {$vid8thm = $defimg;} elseif(!empty($video8thumb_url)) {$vid8thm = $video8thumb_url;} else {$vid8thm = $params->get('video8thumb');} if(empty($video9thumb_url) && is_null($params->get('video9thumb'))) {$vid9thm = $defimg;} elseif(!empty($video9thumb_url)) {$vid9thm = $video9thumb_url;} else {$vid9thm = $params->get('video9thumb');} if(empty($video10thumb_url) && is_null($params->get('video10thumb'))) {$vid10thm = $defimg;} elseif(!empty($video10thumb_url)) {$vid10thm = $video10thumb_url;} else {$vid10thm = $params->get('video10thumb');} if(empty($video11thumb_url) && is_null($params->get('video11thumb'))) {$vid11thm = $defimg;} elseif(!empty($video11thumb_url)) {$vid11thm = $video11thumb_url;} else {$vid11thm = $params->get('video11thumb');} if(empty($video12thumb_url) && is_null($params->get('video12thumb'))) {$vid12thm = $defimg;} elseif(!empty($video12thumb_url)) {$vid12thm = $video12thumb_url;} else {$vid12thm = $params->get('video12thumb');} //If published $video1publish = $params->get('video1publish') ? 'true' : 'false'; $video2publish = $params->get('video2publish') ? 'true' : 'false'; $video3publish = $params->get('video3publish') ? 'true' : 'false'; $video4publish = $params->get('video4publish') ? 'true' : 'false'; $video5publish = $params->get('video5publish') ? 'true' : 'false'; $video6publish = $params->get('video6publish') ? 'true' : 'false'; $video7publish = $params->get('video7publish') ? 'true' : 'false'; $video8publish = $params->get('video8publish') ? 'true' : 'false'; $video9publish = $params->get('video9publish') ? 'true' : 'false'; $video10publish = $params->get('video10publish') ? 'true' : 'false'; $video11publish = $params->get('video11publish') ? 'true' : 'false'; $video12publish = $params->get('video12publish') ? 'true' : 'false'; //Get external txt file with playlist entries if($params->get('extlist')!= '-1') { $ext_list = implode (file('images/cmsefiles/'.$params->get('extlist').'.txt')); } //Video device list if($browsertype) { $video1type = $params->get('video1m'); $video2type = $params->get('video2m'); $video3type = $params->get('video3m'); $video4type = $params->get('video4m'); $video5type = $params->get('video5m'); $video6type = $params->get('video6m'); $video7type = $params->get('video7m'); $video8type = $params->get('video8m'); $video9type = $params->get('video9m'); $video10type = $params->get('video10m'); $video11type = $params->get('video11m'); $video12type = $params->get('video12m'); } else { $video1type = $params->get('video1'); $video2type = $params->get('video2'); $video3type = $params->get('video3'); $video4type = $params->get('video4'); $video5type = $params->get('video5'); $video6type = $params->get('video6'); $video7type = $params->get('video7'); $video8type = $params->get('video8'); $video9type = $params->get('video9'); $video10type = $params->get('video10'); $video11type = $params->get('video11'); $video12type = $params->get('video12'); } if($params->get('video1') && $video1publish == 'true') { $vidfile1 = '
  • '; $vidfile1 .= 'get('video1title').'::'.$params->get('video1desc').'"'; } $vidfile1 .='>'; $vidfile1 .= ''.$params->get('video1title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile1 .= $params->get('video1title').'
    '.$params->get('video1desc').'
    '; } $vidfile1 .='
  • '; } if($params->get('video2') && $video2publish == 'true') { $vidfile2 = '
  • '; $vidfile2 .= 'get('video2title').'::'.$params->get('video2desc').'"'; } $vidfile2 .='>'; $vidfile2 .= ''.$params->get('video2title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile2 .= $params->get('video2title').'
    '.$params->get('video2desc').'
    '; } $vidfile2 .='
  • '; } if($params->get('video3') && $video3publish == 'true') { $vidfile3 = '
  • '; $vidfile3 .= 'get('video3title').'::'.$params->get('video3desc').'"'; } $vidfile3 .='>'; $vidfile3 .= ''.$params->get('video3title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile3 .= $params->get('video3title').'
    '.$params->get('video3desc').'
    '; } $vidfile3 .='
  • '; } if($params->get('video4') && $video4publish == 'true') { $vidfile4 = '
  • '; $vidfile4 .= 'get('video4title').'::'.$params->get('video4desc').'"'; } $vidfile4 .='>'; $vidfile4 .= ''.$params->get('video4title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile4 .= $params->get('video4title').'
    '.$params->get('video4desc').'
    '; } $vidfile4 .='
  • '; } if($params->get('video5') && $video5publish == 'true') { $vidfile5 = '
  • '; $vidfile5 .= 'get('video5title').'::'.$params->get('video5desc').'"'; } $vidfile5 .='>'; $vidfile5 .= ''.$params->get('video5title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile5 .= $params->get('video5title').'
    '.$params->get('video5desc').'
    '; } $vidfile5 .='
  • '; } if($params->get('video6') && $video6publish == 'true') { $vidfile6 = '
  • '; $vidfile6 .= 'get('video6title').'::'.$params->get('video6desc').'"'; } $vidfile6 .='>'; $vidfile6 .= ''.$params->get('video6title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile6 .= $params->get('video6title').'
    '.$params->get('video6desc').'
    '; } $vidfile6 .='
  • '; } if($params->get('video7') && $video7publish == 'true') { $vidfile7 = '
  • '; $vidfile7 .= 'get('video7title').'::'.$params->get('video7desc').'"'; } $vidfile7 .='>'; $vidfile7 .= ''.$params->get('video7title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile7 .= $params->get('video7title').'
    '.$params->get('video7desc').'
    '; } $vidfile7 .='
  • '; } if($params->get('video8') && $video8publish == 'true') { $vidfile8 = '
  • '; $vidfile8 .= 'get('video8title').'::'.$params->get('video8desc').'"'; } $vidfile8 .='>'; $vidfile8 .= ''.$params->get('video8title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile8 .= $params->get('video8title').'
    '.$params->get('video8desc').'
    '; } $vidfile8 .='
  • '; } if($params->get('video9') && $video9publish == 'true') { $vidfile9 = '
  • '; $vidfile9 .= 'get('video9title').'::'.$params->get('video9desc').'"'; } $vidfile9 .='>'; $vidfile9 .= ''.$params->get('video9title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile9 .= $params->get('video9title').'
    '.$params->get('video9desc').'
    '; } $vidfile9 .='
  • '; } if($params->get('video10') && $video10publish == 'true') { $vidfile10 = '
  • '; $vidfile10 .= 'get('video10title').'::'.$params->get('video10desc').'"'; } $vidfile10 .='>'; $vidfile10 .= ''.$params->get('video10title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile10 .= $params->get('video10title').'
    '.$params->get('video10desc').'
    '; } $vidfile10 .='
  • '; } if($params->get('video11') && $video11publish == 'true') { $vidfile11 = '
  • '; $vidfile11 .= 'get('video11title').'::'.$params->get('video11desc').'"'; } $vidfile11 .='>'; $vidfile11 .= ''.$params->get('video11title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile11 .= $params->get('video11title').'
    '.$params->get('video11desc').'
    '; } $vidfile11 .='
  • '; } if($params->get('video12') && $video12publish == 'true') { $vidfile12 = '
  • '; $vidfile12 .= 'get('video12title').'::'.$params->get('video12desc').'"'; } $vidfile12 .='>'; $vidfile12 .= ''.$params->get('video12title').''; if($tool_tip == 'no' && $plpos == 'right' or $plpos == 'bottom') { $vidfile12 .= $params->get('video12title').'
    '.$params->get('video12desc').'
    '; } $vidfile12 .='
  • '; } $playset = array($vidfile1,$vidfile2,$vidfile3,$vidfile4,$vidfile5); $set_shuffle = $params->get('set_shuffle') ? 'true' : 'false'; if ($set_shuffle == 'true') { shuffle($playset); } require JModuleHelper::getLayoutPath( 'mod_cmse_jme_player', $params->get('layout', 'default') ) ; ?>
    Error: Missing JW Player Object

    Video