You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
2.6 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>videojs-http-streaming Demo</title>
  6. <link rel="icon" href="logo.svg">
  7. <link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">
  8. <link href="node_modules/videojs-http-source-selector/dist/videojs-http-source-selector.css" rel="stylesheet">
  9. <style>
  10. body {
  11. font-family: Arial, sans-serif;
  12. margin: 20px;
  13. }
  14. .info {
  15. background-color: #eee;
  16. border: thin solid #333;
  17. border-radius: 3px;
  18. padding: 0 5px;
  19. margin: 20px 0;
  20. }
  21. label {
  22. display: block;
  23. width: 700px;
  24. width: fit-content;
  25. margin-top: 4px;
  26. }
  27. .options label {
  28. background-color: hsl(0, 0%, 90%);
  29. padding: 0.25em;
  30. margin: 0.25em;
  31. }
  32. input[type=url], select {
  33. min-width: 600px;
  34. }
  35. h3 {
  36. margin-bottom: 5px;
  37. }
  38. #keysystems {
  39. display: block;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <div id="player-fixture">
  45. </div>
  46. <label>Representations</label>
  47. <select id='representations'></select>
  48. <h3>Options</h3>
  49. <div class="options">
  50. <label>
  51. <input id=minified type="checkbox">
  52. Minified VHS (reloads player)
  53. </label>
  54. <label>
  55. <input id=liveui type="checkbox">
  56. Enable the live UI (reloads player)
  57. </label>
  58. <label>
  59. <input id=debug type="checkbox">
  60. Debug Logging
  61. </label>
  62. <label>
  63. <input id=muted type="checkbox">
  64. Muted
  65. </label>
  66. <label>
  67. <input id=autoplay type="checkbox">
  68. Autoplay
  69. </label>
  70. <label>
  71. <input id=partial type="checkbox">
  72. Handle Partial (reloads player)
  73. </label>
  74. </div>
  75. <h3>Load a URL</h3>
  76. <label>Url:</label>
  77. <input id=url type=url>
  78. <label>Type: (uses url extension if blank, usually application/x-mpegURL or application/dash+xml)</label>
  79. <input id=type type=text>
  80. <label>Optional Keystems JSON:</label>
  81. <textarea id=keysystems cols=100 rows=5></textarea>
  82. <button id=load-url type=button>Load</button>
  83. <h3>Load a Source</h3>
  84. <select id=load-source>
  85. <optgroup label="hls">
  86. </optgroup>
  87. <optgroup label="dash">
  88. </optgroup>
  89. <optgroup label="drm">
  90. </optgroup>
  91. <optgroup label="live">
  92. </optgroup>
  93. <optgroup label="low latency live">
  94. </optgroup>
  95. </select>
  96. <h3>Navigation</h3>
  97. <ul>
  98. <li><a href="test/debug.html">Run unit tests in browser.</a></li>
  99. <li><a href="docs/api/">Read generated docs.</a></li>
  100. <li><a href="utils/stats/">Stats</a></li>
  101. </ul>
  102. <script src="scripts/index-demo-page.js"></script>
  103. <script>
  104. window.startDemo(function(player) {
  105. // do something with setup player
  106. });
  107. </script>
  108. </body>
  109. </html>