Skip to content

Commit

Permalink
docs: update readme to include plugin init (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
forbesjo committed Aug 29, 2018
1 parent 3b724b6 commit 050c300
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Maintenance Status: Experimental


- [Using](#using)
- [Initialization](#initialization)
- [FairPlay](#fairplay)
- [PlayReady for IE11 (Windows 8.1+)](#playready-for-ie11-windows-81)
- [Other DRM Systems](#other-drm-systems)
- [Source Options](#source-options)
- [Plugin Options](#plugin-options)
Expand All @@ -33,6 +35,20 @@ decrypt audio/video, a user must pass in either relevant license URIs, or method
to a source and its combination of key system and codec. These are provided to the plugin
via either videojs-contrib-eme's plugin options, or source options.

### Initialization
The videojs-contrib-eme plugin must be initialized before a source is loaded into the player:

```javascript
player.eme();
player.src({
src: '<your url here>',
type: 'application/dash+xml',
keySystems: {
'com.widevine.alpha': '<your url here>'
}
});
```

### FairPlay

For FairPlay, only `keySystems` is used from the options passed into videojs-contrib-eme,
Expand Down

0 comments on commit 050c300

Please sign in to comment.