Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="{SCRIPT_FOLDER}tubes/js/jwplayer.js"></script>
- <script type="text/javascript">
- jwplayer("player_site").setup({
- image: "{IMG}",
- sources: [{
- file: "{FLV_DIRECT_HTML5}"
- }
- ],
- width: "100%",
- aspectratio: "16:9"
- }).on('error', function()
- {
- if (error_video) return;
- error_video = true;
- xmlhttp = new XMLHttpRequest ();
- xmlhttp.onreadystatechange = function ()
- {
- if (xmlhttp.readyState == 4)
- {
- if (xmlhttp.responseText != '')
- {
- uppodSend (playerID, 'file:' + xmlhttp.responseText);
- }
- };
- }
- xmlhttp.open ("POST", script_folder + "tubes/video.php", true);
- xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
- xmlhttp.send ('action=bad_video&url=' + encodeURIComponent (document.location.href));
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement