fa5c74ef by Matthew McClure

updated readme to include media source plugin

1 parent 19b052a5
...@@ -5,16 +5,20 @@ A video.js tech that plays HLS video on platforms that don't support it but have ...@@ -5,16 +5,20 @@ 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']
16 }); 17 });
17 player.play(); 18
19 player.ready(function() {
20 this.play();
21 });
18 </script> 22 </script>
19 ``` 23 ```
20 24
......