monitor.html 897 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>监控</title>
  5. <link href="/static/videojs8.3.0/video-js.css" rel="stylesheet" />
  6. <script src="/static/videojs8.3.0/video.min.js"></script>
  7. <style>
  8. html,body{
  9. padding: 0;
  10. margin: 0;
  11. }
  12. #videobox{
  13. position: fixed;
  14. z-index: 10;
  15. top: 0;
  16. left: 0;
  17. right: 0;
  18. bottom: 0;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div id="videobox">
  24. <video id="video" class="video-js vjs-default-skin" style="width:100%;height:100%;" controls autoplay></video>
  25. </div>
  26. <script>
  27. var video = videojs("video", {
  28. techOrder: ["html5", "flash"],
  29. sources: [
  30. {
  31. src: "{$info.url}",
  32. type: "application/x-mpegURL",
  33. },
  34. ],
  35. });
  36. // video.play();
  37. </script>
  38. </body>
  39. </html>