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.

80 lines
2.6 KiB

@gkatsev ensure segments without an initial IDR are not displayed in 4:3 initially. Closes #272. Squashed commit of the following: commit de597c3ee10075cece7036aeaacedb74f33d9ef5 Author: David LaPalomento <dlapalomento@gmail.com> Date: Fri May 22 14:02:27 2015 -0400 Remove vim swap file Ignore them in version control in the future. commit fb189ba16330311371bb6b9cf1bb6248005e10b7 Author: Gary Katsevman <git@gkatsev.com> Date: Wed May 20 18:30:07 2015 -0400 Default 'nextFrameKeyFrame' to false. commit 3788ad0607fabb2cde1a1d5eea4163ceafb5fab5 Author: Gary Katsevman <git@gkatsev.com> Date: Wed May 20 18:24:16 2015 -0400 setNextFrameKeyFrame commit 6944234afd99285a448a9cf3adbcaf1eb26cfe33 Author: Gary Katsevman <git@gkatsev.com> Date: Wed May 20 18:06:26 2015 -0400 Another camelcase usage commit da6e32a4d9024d859ca58bc1d4bc3fcbe1de7a33 Author: Gary Katsevman <git@gkatsev.com> Date: Wed May 20 18:05:30 2015 -0400 Dont parse unused fields. Use camel case names commit fb7990b6606501a549d7448de6eec38784695896 Author: Gary Katsevman <git@gkatsev.com> Date: Wed May 20 16:28:28 2015 -0400 ifs should have curly braces commit 92e40c642270e4ce4652a874073a66876312072f Author: Gary Katsevman <git@gkatsev.com> Date: Wed May 20 15:58:18 2015 -0400 Adaptation Field vars. Use Random Access Indicator The Random Access Indicator tells us whether something is a keyframe. Set the stream's frame's keyFrame property to true if the Random Access Indicator is set. commit 047a6d7771cd2d9c324b6da9bd76d4b6aeeadaf0 Author: Gary Katsevman <git@gkatsev.com> Date: Mon May 18 16:56:23 2015 -0400 Set up the test with exact conditions commit e2f8b18656d4cdb830cd23013fe7e5fcfa599ca4 Author: Gary Katsevman <git@gkatsev.com> Date: Mon May 18 16:56:01 2015 -0400 Restore stubbed out methods commit ff5f3b5fdb9dbe5e34447f8a4680c294163e0c46 Author: Gary Katsevman <git@gkatsev.com> Date: Mon May 18 16:50:22 2015 -0400 prototypeify h264-stream commit 7ee359d582550474a33730547742ce3d656dad52 Author: Gary Katsevman <git@gkatsev.com> Date: Mon May 18 16:28:08 2015 -0400 Initial test for metadata commit 0e3a961c7594d67280958cf21330fb347e1dda0a Author: Gary Katsevman <git@gkatsev.com> Date: Mon May 18 16:21:55 2015 -0400 Fix test properly commit 7e0de308227a4373c6abd71769ed474e59c7edeb Author: Gary Katsevman <git@gkatsev.com> Date: Mon May 18 16:14:57 2015 -0400 Move h264-extradata into separate file commit 66a676c234e6e087694611d710cad6414cbc984c Author: Gary Katsevman <git@gkatsev.com> Date: Mon May 18 15:52:08 2015 -0400 prototypeify H264ExtraData
10 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>video.js HLS Plugin Example</title>
  6. <link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">
  7. <!-- video.js -->
  8. <script src="node_modules/video.js/dist/video.js"></script>
  9. <!-- Media Sources plugin -->
  10. <script src="node_modules/videojs-contrib-media-sources/src/videojs-media-sources.js"></script>
  11. <!-- HLS plugin -->
  12. <script src="src/videojs-hls.js"></script>
  13. <!-- segment handling -->
  14. <script src="src/xhr.js"></script>
  15. <script src="src/flv-tag.js"></script>
  16. <script src="src/stream.js"></script>
  17. <script src="src/exp-golomb.js"></script>
  18. <script src="src/h264-extradata.js"></script>
  19. <script src="src/h264-stream.js"></script>
  20. <script src="src/aac-stream.js"></script>
  21. <script src="src/metadata-stream.js"></script>
  22. <script src="src/segment-parser.js"></script>
  23. <!-- m3u8 handling -->
  24. <script src="src/m3u8/m3u8-parser.js"></script>
  25. <script src="src/playlist.js"></script>
  26. <script src="src/playlist-loader.js"></script>
  27. <script src="node_modules/pkcs7/dist/pkcs7.unpad.js"></script>
  28. <script src="src/decrypter.js"></script>
  29. <script src="src/bin-utils.js"></script>
  30. <!-- example MPEG2-TS segments -->
  31. <!-- bipbop -->
  32. <!-- <script src="test/tsSegment.js"></script> -->
  33. <!-- bunnies -->
  34. <!--<script src="test/tsSegment-bc.js"></script>-->
  35. <style>
  36. body {
  37. font-family: Arial, sans-serif;
  38. margin: 20px;
  39. }
  40. .info {
  41. background-color: #eee;
  42. border: thin solid #333;
  43. border-radius: 3px;
  44. padding: 0 5px;
  45. margin: 20px 0;
  46. }
  47. </style>
  48. </head>
  49. <body>
  50. <div class="info">
  51. <p>The video below is an <a href="https://developer.apple.com/library/ios/documentation/networkinginternet/conceptual/streamingmediaguide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008332-CH1-SW1">HTTP Live Stream</a>. On desktop browsers other than Safari, the HLS plugin will polyfill support for the format on top of the video.js Flash tech.</p>
  52. <p>Due to security restrictions in Flash, you will have to load this page over HTTP(S) to see the example in action.</p>
  53. </div>
  54. <video id="video"
  55. class="video-js vjs-default-skin"
  56. height="300"
  57. width="600"
  58. controls>
  59. <source
  60. src="http://solutions.brightcove.com/jwhisenant/hls/apple/bipbop/bipbopall.m3u8"
  61. type="application/x-mpegURL">
  62. </video>
  63. <script>
  64. videojs.getGlobalOptions().flash.swf = 'node_modules/videojs-swf/dist/video-js.swf';
  65. // initialize the player
  66. var player = videojs('video');
  67. </script>
  68. </body>
  69. </html>