video.php 793 B

1234567891011121314151617181920212223
  1. <?php
  2. if(!isset($_COOKIE["session"]) || $_COOKIE["session"] != "true") {
  3. http_response_code(403);
  4. die('Forbidden');
  5. }
  6. ?>
  7. <!DOCTYPE html>
  8. <html lang="en" style="height:100%">
  9. <head>
  10. <meta charset="utf-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  12. <script src="/assets/js/player/youplay.js"></script>
  13. </head>
  14. <body style="margin:0;height:100%;overflow:hidden">
  15. <video class="video-js vjs-default-skin" controls id="player" poster="<?=htmlspecialchars($_GET["preview"])?>" title="<?=htmlspecialchars($_GET["title"])?>" style="width:100%;height:100%">
  16. Your browser does not support the video tag.
  17. </video>
  18. <script>
  19. yp_player({share:false,use_desktop_skin:true,sources:[{src:"<?=htmlspecialchars($_GET["url"])?>",label:"Video",audio:true}]});
  20. </script>
  21. </body>
  22. </html>