videojs.html 500 B

123456789101112131415161718
  1. <link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/video.js/dist/video-js.min.css"/>
  2. <video
  3. id="player"
  4. class="video-js"
  5. preload="auto"
  6. controls >
  7. <source id="src" />
  8. </video>
  9. <script src="https://fastly.jsdelivr.net/npm/video.js/dist/video.min.js"></script>
  10. <script>
  11. const source = location.search.substring(3);
  12. document.getElementById("src").src = source;
  13. let setup = {
  14. playbackRates: [0.5, 1, 1.25, 1.5, 2, 4],
  15. };
  16. let player = videojs('player',setup);
  17. </script>