Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon committed Jan 10, 2018
1 parent 4a1efd2 commit 8b570d0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

[Demo Page](https://surmon-china.github.io/vue-video-player)

[CDN Example](https://jsfiddle.net/u69gnx90/)

[nuxt.js/ssr example code](https://github.com/surmon-china/vue-video-player/blob/master/examples/nuxt-ssr-example)

[More Example Code](https://github.com/surmon-china/vue-video-player/tree/master/examples)
Expand All @@ -32,7 +34,7 @@

``` html
<link rel="stylesheet" href="path/to/video.js/dist/video-js.css"/>
<script type="text/javascript" src="path/to/video-js.js"></script>
<script type="text/javascript" src="path/to/video.min.js"></script>
<script type="text/javascript" src="path/to/vue.min.js"></script>
<script type="text/javascript" src="path/to/dist/vue-video-player.js"></script>
<script type="text/javascript">
Expand Down Expand Up @@ -229,10 +231,10 @@ videojs.addLanguage('es', {

# API
- component api:
* `events`(array, default: []): custom videojs event to component
* `playsinline`(boolean, default: false): set player not full-screen in mobile device
* `crossOrigin`(string, default: ''): set crossOrigin to video
* `customEventName`(string, default: 'statechanged'): custom the state change event name
* `events`: `[array, default: [] ]`: custom videojs event to component
* `playsinline`: `[boolean, default: false ]`: set player not full-screen in mobile device
* `crossOrigin`: `[string, default: '' ]`: set crossOrigin to video
* `customEventName`: `[string, default: 'statechanged' ]`: custom the state change event name

- video.js api
* [video.js options](http://docs.videojs.com/tutorial-options.html)
Expand Down

0 comments on commit 8b570d0

Please sign in to comment.