player.html 852 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Anime Player | lsd.cat</title>
  7. <link rel="icon" sizes="16x16" type="image/png" href="/icon.png" />
  8. <style type="text/css">body{margin:40px auto;max-width: 900px;padding:0 10px;background-color: #171a1c}video{width:100% !important; height:auto !important}</style>
  9. </head>
  10. <body>
  11. <script src="hls.js"></script>
  12. <video controls id="video"></video>
  13. <script>
  14. if(Hls.isSupported()) {
  15. var video = document.getElementById('video');
  16. var hls = new Hls();
  17. hls.loadSource(window.location.hash.substring(1));
  18. hls.attachMedia(video);
  19. hls.on(Hls.Events.MANIFEST_PARSED,function() {
  20. video.play();
  21. });
  22. }
  23. </script>
  24. </body>
  25. </html>