Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <script src="{SCRIPT_FOLDER}tubes/js/jwplayer.js"></script>
  2. <script type="text/javascript">
  3. jwplayer("player_site").setup({
  4. image: "{IMG}",
  5. sources: [{
  6. file: "{FLV_DIRECT_HTML5}"
  7. }
  8. ],
  9. width: "100%",
  10. aspectratio: "16:9"
  11. }).on('error', function()
  12. {
  13. if (error_video) return;
  14. error_video = true;
  15. xmlhttp = new XMLHttpRequest ();
  16. xmlhttp.onreadystatechange = function ()
  17. {
  18. if (xmlhttp.readyState == 4)
  19. {
  20. if (xmlhttp.responseText != '')
  21. {
  22. uppodSend (playerID, 'file:' + xmlhttp.responseText);
  23. }
  24. };
  25. }
  26. xmlhttp.open ("POST", script_folder + "tubes/video.php", true);
  27. xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  28. xmlhttp.send ('action=bad_video&url=' + encodeURIComponent (document.location.href));
  29. });
  30. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement