} else { $(".player_actions").show(); $(".jp-playlist").show(); } }); $('#jp_container_1' + ' ul:last').sortable({ update: function () { jplaylist.scan(); } }); replaygainNode = null; replaygainEnabled = false; <?php echo WebPlayer::add_media_js($playlist); ?> }); </script> <?php // Load Aurora.js scripts if (AmpConfig::get('webplayer_aurora')) { $atypes = array(); foreach ($supplied as $stype) { if ($stype == 'ogg') { // Ogg could requires vorbis/opus codecs if (!in_array('ogg', $atypes)) { $atypes[] = 'ogg'; } if (!in_array('vorbis', $atypes)) {
protected function getSongJS($song_id) { $media = array(); $media[] = array('object_type' => 'song', 'object_id' => $song_id); $item = Stream_Playlist::media_to_urlarray($media); return WebPlayer::get_media_js_param($item[0]); }
if (ff.getAttribute('className') == 'frame_footer_visible') { ff.setAttribute('className', 'frame_footer_hide'); ff.setAttribute('class', 'frame_footer_hide'); maindiv.style.height = parent.parent.innerHeight + "px"; <?php if (AmpConfig::get('song_page_title')) { echo "window.parent.document.title = '" . addslashes(AmpConfig::get('site_title')) . "';"; } ?> } window.parent.onbeforeunload = null; ff.setAttribute('src', ''); return false; } </script> <?php $isRadio = false; $isVideo = false; $radio = null; if (isset($playlist)) { if (WebPlayer::is_playlist_radio($playlist)) { // Special stuff for web radio (to better handle Icecast/Shoutcast metadata ...) // No special stuff for now $isRadio = true; $radio = $playlist->urls[0]; } else { $isVideo = WebPlayer::is_playlist_video($playlist); } } require_once AmpConfig::get('prefix') . '/templates/show_html5_player.inc.php';
<?php } ?> } <?php if (AmpConfig::get('webplayer_confirmclose')) { ?> parent.parent.onbeforeunload = null; <?php } ?> if (appendmedia) { <?php echo WebPlayer::add_media_js($this, "ff.contentWindow."); ?> } else { ff.setAttribute('src', '<?php echo AmpConfig::get('web_path'); ?> /web_player_embedded.php?playlist_id=<?php echo $this->id; ?> '); window.location = '<?php echo return_referer(); ?> '; } return false;
* */ ?> <html> <head> <title><?php echo AmpConfig::get('site_title'); ?> </title> <script language="javascript" type="text/javascript"> <!-- begin function PlayerPopUp(URL) { <?php $width = 730; if (WebPlayer::is_playlist_video($this)) { $width = 880; } ?> window.open(URL, 'Web_player', 'width=<?php echo $width; ?> ,height=285,scrollbars=0,toolbar=0,location=0,directories=0,status=0,resizable=0'); window.location = '<?php echo return_referer(); ?> '; return false; } // end --> </script>
} <?php if (AmpConfig::get('webplayer_confirmclose')) { ?> document.onbeforeunload = null; <?php } ?> if (appendmedia) { <?php echo WebPlayer::add_media_js($this); ?> } else if (playnext) { <?php echo WebPlayer::play_next_js($this); ?> } else { $webplayer.show(); $.get('<?php echo AmpConfig::get('web_path'); ?> /web_player_embedded.php?playlist_id=<?php echo $this->id; ?> ', function (data) { var $response = $(data); $webplayer.empty().append($response); },'html'); } return false;