d7c2b800 by David LaPalomento

Merge pull request #81 from mmcc/include-media-source

Updated readme to include media source plugin
2 parents 19b052a5 f70548fd
...@@ -5,16 +5,18 @@ A video.js tech that plays HLS video on platforms that don't support it but have ...@@ -5,16 +5,18 @@ A video.js tech that plays HLS video on platforms that don't support it but have
5 [![Build Status](https://travis-ci.org/videojs/videojs-contrib-hls.svg?branch=master)](https://travis-ci.org/videojs/videojs-contrib-hls) 5 [![Build Status](https://travis-ci.org/videojs/videojs-contrib-hls.svg?branch=master)](https://travis-ci.org/videojs/videojs-contrib-hls)
6 6
7 ## Getting Started 7 ## Getting Started
8 Download the [tech](https://github.com/videojs/videojs-contrib-hls/releases). On your web page: 8 Download the [Media Source plugin](https://github.com/videojs/videojs-contrib-media-sources/releases) as well as the [HLS tech](https://github.com/videojs/videojs-contrib-hls/releases). On your web page:
9 9
10 ```html 10 ```html
11 <script src="video.js"></script> 11 <script src="video.js"></script>
12 <script src="videojs-media-sources.js"></script>
12 <script src="videojs-hls.min.js"></script> 13 <script src="videojs-hls.min.js"></script>
13 <script> 14 <script>
14 var player = videojs('video', { 15 var player = videojs('test-vid', {
15 techOrder: ['html5', 'hls', 'flash'] 16 techOrder: ['html5', 'hls', 'flash']
17 }, function() {
18 this.play();
16 }); 19 });
17 player.play();
18 </script> 20 </script>
19 ``` 21 ```
20 22
......