Video.js tech for FLV playback using flv.js

This tech uses flv.js to play FLV files using Media Source Extenstions.

To use, add flv.js and this plugin to the page. If you are using Video.js 5, you will need to set the tech order. From Video.js 6, the default tech order is updated automatically.


<link href="//path/to/video-js.css" rel="stylesheet">
<script src="//path/to/video.min.js"></script>
<script src="//path/to/flv.min.js"></script>
<script src="//path/to/videojs-flvjs.min.js"></script>
<video id="videojs-flvjs-player" class="video-js vjs-default-skin" controls>
  <source src="movie.flv" type='video/x-flv'>
</video>
<script>
  // Setting the techOrder is necessary in 5.x
  // In 6.x techs are added automatically
  videojs('videojs-flvjs-player', {
    // 5.x only:
    // techOrder: ['html5', 'flvjs']
  });
</script>