c5de61ef by David LaPalomento

Update Getting Started

Include the video element config in the example code. Link to the demo on gh-pages.
1 parent 2ce42f83
Showing 1 changed file with 10 additions and 3 deletions
......@@ -5,18 +5,25 @@ A video.js tech that plays HLS video on platforms that don't support it but have
[![Build Status](https://travis-ci.org/videojs/videojs-contrib-hls.svg?branch=master)](https://travis-ci.org/videojs/videojs-contrib-hls)
## Getting Started
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:
Download [videojs-contrib-media-sources](https://github.com/videojs/videojs-contrib-media-sources/releases) and [videojs-contrib-hls](https://github.com/videojs/videojs-contrib-hls/releases). Include them both in your web page along with video.js:
```html
<video id=example-video width=600 height=300 class="video-js vjs-default-skin" controls>
<source
src="https://example.com/index.m3u8"
type="application/x-mpegURL">
</video>
<script src="video.js"></script>
<script src="videojs-media-sources.js"></script>
<script src="videojs-hls.min.js"></script>
<script>
var player = videojs('test-vid');
player.play();
var player = videojs('example-video');
player.play();
</script>
```
Check out our [live example](http://videojs.github.io/videojs-contrib-hls/) if you're having trouble.
## Documentation
[HTTP Live Streaming](https://developer.apple.com/streaming/) (HLS) has
become a de-facto standard for streaming video on mobile devices
......