Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title></title>
  6.  
  7. <link rel="stylesheet" type="text/css" href="css/playlistRight_buttons.css" />
  8.  
  9. <script
  10. src="https://code.jquery.com/jquery-2.2.4.min.js"
  11. integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
  12. crossorigin="anonymous"></script>
  13.  
  14. <script type="text/javascript" src="js/jquery.apCookie.min.js"></script>
  15. <script type="text/javascript" src="js/jquery.apvb.min.js"></script>
  16. <script type="text/javascript">
  17. jQuery(document).ready(function($) {
  18.  
  19. var hap_player;
  20.  
  21. var getfrom = 0;
  22. function executeQuery(getfrom) {
  23. alert(getfrom);
  24. // GETFROM 0 = Default, 1 = Videostart, 2 = Videoend
  25. $.ajax({
  26. url: 'ajax/ajaxload.php',
  27. data: {"hash": "<?php echo $_GET['hash']; ?>","cookiehash":"<?php echo $cookiehash; ?>"},
  28.  
  29. success: function(data) {
  30. if(data==2) {
  31. document.location.href = "sys/error/errorgetback.php?hash="+"<?php echo $_GET['hash']; ?>";
  32. }
  33.  
  34. if(data==3 && getfrom==2) {
  35. document.location.href = "sys/?hash="+"<?php echo $_GET['hash']; ?>";
  36. }
  37.  
  38. // Fadeout 15 Sekunden
  39. setTimeout(
  40. function()
  41. {
  42. // hide
  43. $( "#ajax" ).fadeOut(3000);
  44. }, 15000);
  45.  
  46. // HIDE IN
  47. $("#ajax").hide().html(data).fadeIn(3000);
  48. }
  49. });
  50. setTimeout(executeQuery(0), 50000); // you could choose not to continue on failure...
  51. }
  52.  
  53. $(document).ready(function() {
  54. // run the first time; all subsequent calls will take care of themselves
  55. setTimeout(executeQuery(0), 50000);
  56. });
  57.  
  58. var apvb_settings = {
  59. /* mediaId: unique string for player identification (if multiple player instances were used, then strings need to be different!) */
  60. mediaId:'player1',
  61. /* componentFixedSize: true/false. Responsive = false, fixed = true */
  62. componentFixedSize: false,
  63. /*defaultVolume: 0-1 */
  64. defaultVolume:1,
  65. /*autoPlay: true/false (default false on mobile) */
  66. autoPlay:true,
  67. /*randomPlay: true/false */
  68. randomPlay:true,
  69. /* loopingOn: on playlist end rewind to beginning (last item in playlist) */
  70. loopingOn: true,
  71. /* defaultGallerySide: bottom / right (default thumbnail side) */
  72. defaultGallerySide: 'right',
  73. /* scrollType: buttons / scroll */
  74. scrollType: 'buttons',
  75. /* autoOpenPlaylist: true/false. Auto open playlist on beginning */
  76. autoOpenPlaylist: true,
  77. /* closePlaylistOnVideoSelect: close playlist on video select */
  78. closePlaylistOnVideoSelect: false,
  79. /* onPlaylistEndGoToUrl: true/false, navigate to url on playlist end (last item in playlist). Note: this will override loopingOn! */
  80. onPlaylistEndGoToUrl: false,
  81. /* onPlaylistEndUrl: url to redirect to */
  82. onPlaylistEndUrl: 'http://www.google.com/',
  83. /* onPlaylistEndTarget: _blank (open in new window) / _parent (open in same window) */
  84. onPlaylistEndTarget: '_parent',
  85. /*useCookieDetection; use detection with local storage/cookies of skipping intro if already visited (true/false). 'onPlaylistEndGoToUrl' must be 'true' for this to happen. */
  86. useCookieDetection: true,
  87. /* useKeyboardNavigation: true/false (left arrow=previous media, right arrow=next media, space=pause/play, m=mute/unmute) */
  88. useKeyboardNavigation: true,
  89. ytAppId:'AIzaSyBkvEw2eFpRjeUUSetuxzLJMWVxJpfsVm0',/* youtube api key */
  90.  
  91. /* DEEPLINKING SETTINGS */
  92. /* useDeeplink: true, false */
  93. useDeeplink:false,
  94. /* startUrl: deeplink start url, enter 'ul' data-address/'li' data-address (two levels). Or just 'ul' data-address (single level). */
  95. startUrl: 'playlist?list=PLAqmiZGNvEAtNuM4Bt3beIt5QNd4Bq5YC',
  96.  
  97. /* NO DEEPLINKING SETTINGS */
  98. /*activePlaylist: enter element 'id' attributte */
  99. activePlaylist:'playlist3'
  100. };
  101. //init component
  102. hap_player = $('#componentWrapper').apvb(apvb_settings);
  103. });
  104.  
  105. function apvbPlaylistLoaded(instance, mediaId){
  106. executeQuery(1);
  107. }
  108.  
  109. function apvbVideoStart(instance, mediaId, counter){
  110. executeQuery(1);
  111. }
  112. function apvbVideoEnd(instance, mediaId, counter){
  113. executeQuery(2);
  114. }
  115.  
  116.  
  117. </script>
  118. </head>
  119. <body>
  120. <div id="componentWrapper">
  121. <div class="mediaWrapper">
  122. <!-- local video holder -->
  123. <div class="mediaHolder"></div>
  124. <!-- preview image holder -->
  125. <div class="previewHolder"></div>
  126. <!-- youtube holder -->
  127. <div class="youtubeHolder"></div>
  128. <!-- big play button for media -->
  129. <div class="big_play"><img src='data/icons/big_play.png' alt=''/></div>
  130. <div class="controls_vol_fs">
  131. <div class="controls_fullscreen"></div>
  132. </div>
  133. <div class="ads" id="bigads"></div>
  134. </div>
  135. <!-- media preloader -->
  136. <div class="mediaPreloader"></div>
  137. </div>
  138.  
  139.  
  140. <div class="componentPlaylist">
  141. <ul id='playlist3' data-address="playlist3">
  142. <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>
  143. </ul>
  144. </div>
  145. <div id="ajax"></div>
  146. </body>
  147. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement