Skip to content

Commit 8b570d0

Browse files
author
surmon
committed
update README.md
1 parent 4a1efd2 commit 8b570d0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

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

24+
[CDN Example](https://jsfiddle.net/u69gnx90/)
25+
2426
[nuxt.js/ssr example code](https://github.com/surmon-china/vue-video-player/blob/master/examples/nuxt-ssr-example)
2527

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

3335
``` html
3436
<link rel="stylesheet" href="path/to/video.js/dist/video-js.css"/>
35-
<script type="text/javascript" src="path/to/video-js.js"></script>
37+
<script type="text/javascript" src="path/to/video.min.js"></script>
3638
<script type="text/javascript" src="path/to/vue.min.js"></script>
3739
<script type="text/javascript" src="path/to/dist/vue-video-player.js"></script>
3840
<script type="text/javascript">
@@ -229,10 +231,10 @@ videojs.addLanguage('es', {
229231

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

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

0 commit comments

Comments
 (0)