Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <link rel="stylesheet" type="text/css" href="css/playlistRight_buttons.css" />
- <script
- src="https://code.jquery.com/jquery-2.2.4.min.js"
- integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
- crossorigin="anonymous"></script>
- <script type="text/javascript" src="js/jquery.apCookie.min.js"></script>
- <script type="text/javascript" src="js/jquery.apvb.min.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(function($) {
- var hap_player;
- var getfrom = 0;
- function executeQuery(getfrom) {
- alert(getfrom);
- // GETFROM 0 = Default, 1 = Videostart, 2 = Videoend
- $.ajax({
- url: 'ajax/ajaxload.php',
- data: {"hash": "<?php echo $_GET['hash']; ?>","cookiehash":"<?php echo $cookiehash; ?>"},
- success: function(data) {
- if(data==2) {
- document.location.href = "sys/error/errorgetback.php?hash="+"<?php echo $_GET['hash']; ?>";
- }
- if(data==3 && getfrom==2) {
- document.location.href = "sys/?hash="+"<?php echo $_GET['hash']; ?>";
- }
- // Fadeout 15 Sekunden
- setTimeout(
- function()
- {
- // hide
- $( "#ajax" ).fadeOut(3000);
- }, 15000);
- // HIDE IN
- $("#ajax").hide().html(data).fadeIn(3000);
- }
- });
- setTimeout(executeQuery(0), 50000); // you could choose not to continue on failure...
- }
- $(document).ready(function() {
- // run the first time; all subsequent calls will take care of themselves
- setTimeout(executeQuery(0), 50000);
- });
- var apvb_settings = {
- /* mediaId: unique string for player identification (if multiple player instances were used, then strings need to be different!) */
- mediaId:'player1',
- /* componentFixedSize: true/false. Responsive = false, fixed = true */
- componentFixedSize: false,
- /*defaultVolume: 0-1 */
- defaultVolume:1,
- /*autoPlay: true/false (default false on mobile) */
- autoPlay:true,
- /*randomPlay: true/false */
- randomPlay:true,
- /* loopingOn: on playlist end rewind to beginning (last item in playlist) */
- loopingOn: true,
- /* defaultGallerySide: bottom / right (default thumbnail side) */
- defaultGallerySide: 'right',
- /* scrollType: buttons / scroll */
- scrollType: 'buttons',
- /* autoOpenPlaylist: true/false. Auto open playlist on beginning */
- autoOpenPlaylist: true,
- /* closePlaylistOnVideoSelect: close playlist on video select */
- closePlaylistOnVideoSelect: false,
- /* onPlaylistEndGoToUrl: true/false, navigate to url on playlist end (last item in playlist). Note: this will override loopingOn! */
- onPlaylistEndGoToUrl: false,
- /* onPlaylistEndUrl: url to redirect to */
- onPlaylistEndUrl: 'http://www.google.com/',
- /* onPlaylistEndTarget: _blank (open in new window) / _parent (open in same window) */
- onPlaylistEndTarget: '_parent',
- /*useCookieDetection; use detection with local storage/cookies of skipping intro if already visited (true/false). 'onPlaylistEndGoToUrl' must be 'true' for this to happen. */
- useCookieDetection: true,
- /* useKeyboardNavigation: true/false (left arrow=previous media, right arrow=next media, space=pause/play, m=mute/unmute) */
- useKeyboardNavigation: true,
- ytAppId:'AIzaSyBkvEw2eFpRjeUUSetuxzLJMWVxJpfsVm0',/* youtube api key */
- /* DEEPLINKING SETTINGS */
- /* useDeeplink: true, false */
- useDeeplink:false,
- /* startUrl: deeplink start url, enter 'ul' data-address/'li' data-address (two levels). Or just 'ul' data-address (single level). */
- startUrl: 'playlist?list=PLAqmiZGNvEAtNuM4Bt3beIt5QNd4Bq5YC',
- /* NO DEEPLINKING SETTINGS */
- /*activePlaylist: enter element 'id' attributte */
- activePlaylist:'playlist3'
- };
- //init component
- hap_player = $('#componentWrapper').apvb(apvb_settings);
- });
- function apvbPlaylistLoaded(instance, mediaId){
- executeQuery(1);
- }
- function apvbVideoStart(instance, mediaId, counter){
- executeQuery(1);
- }
- function apvbVideoEnd(instance, mediaId, counter){
- executeQuery(2);
- }
- </script>
- </head>
- <body>
- <div id="componentWrapper">
- <div class="mediaWrapper">
- <!-- local video holder -->
- <div class="mediaHolder"></div>
- <!-- preview image holder -->
- <div class="previewHolder"></div>
- <!-- youtube holder -->
- <div class="youtubeHolder"></div>
- <!-- big play button for media -->
- <div class="big_play"><img src='data/icons/big_play.png' alt=''/></div>
- <div class="controls_vol_fs">
- <div class="controls_fullscreen"></div>
- </div>
- <div class="ads" id="bigads"></div>
- </div>
- <!-- media preloader -->
- <div class="mediaPreloader"></div>
- </div>
- <div class="componentPlaylist">
- <ul id='playlist3' data-address="playlist3">
- <li data-address="youtube_playlist" class= "playlistItem" data-type='youtube_playlist' data-quality='hd720' data-path="<?php echo $playlist['playlistytid']; ?>" data-aspectRatio='2' data-width="640" data-height="360"></li>
- </ul>
- </div>
- <div id="ajax"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement