ustoopia

webpage+video.js for HLS RTMP streaming

Mar 29th, 2019
5,842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset=utf-8 />
  5. <title>Your Stream</title>
  6. <!--
  7.  
  8. Uses the latest versions of video.js and videojs-http-streaming.
  9.  
  10. To use specific versions, please change the URLs to the form:
  11.  
  12. <link href="https://unpkg.com/[email protected]/dist/video-js.css" rel="stylesheet">
  13. <script src="https://unpkg.com/[email protected]/dist/video.js"></script>
  14. <script src="https://unpkg.com/@videojs/[email protected]/dist/videojs-http-streaming.js"></script>
  15.  
  16. -->
  17. <link href="http://yourserver.ddns.net:8088/video.js/video-js.css" rel="stylesheet">
  18. </head>
  19. <body>
  20. <center>
  21. <video-js id="live_stream" class="vjs-default-skin" controls autoplay preload="auto" width="1280" height="720">
  22. <source src="http://yourserver.ddns.net:8088/live/stream/index.m3u8" type="application/x-mpegURL">
  23. </video-js>
  24.  
  25. <script src='http://yourserver.ddns.net:8088/video.js/video.js'></script>
  26. <script src="http://yourserver.ddns.net:8088/video.js/videojs-http-streaming.js"></script>
  27.  
  28. <script>
  29. var player = videojs('live_stream');
  30. </script>
  31. </center>
  32. </body>
  33. </html>
Add Comment
Please, Sign In to add comment