Skip to content

Commit c523686

Browse files
committed
Update to v4.0.0
1 parent 7622d7a commit c523686

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+25380
-1037
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# Update
1515
Updated to video.js 6+.
1616

17-
todo: ssr & cdn script.
18-
1917
# Example
2018
[Demo Page](https://surmon-china.github.io/vue-video-player)
2119

@@ -63,6 +61,11 @@ videojs.addLanguage('ml', myLanguageObject)
6361
videojs.registerPlugin('examplePlugin', examplePlugin)
6462
// videojs.[methods]...
6563

64+
// or require videojs (plugins || langs || ...)
65+
require('video.js/dist/lang/ba')
66+
require('videos-some-plugins')
67+
require('videos...')
68+
6669
// mount with component(can't work in Nuxt.js/SSR)
6770
import { videoPlayer } from 'vue-video-player'
6871

@@ -114,25 +117,20 @@ export default {
114117
<video-player class="video-player-box"
115118
ref="videoPlayer"
116119
:options="playerOptions"
117-
:start="0"
118120
:playsinline="true"
119-
customEventName="customstateevent"
121+
customEventName="customstatechangedeventname"
120122
121-
title="you can listen some event if you need"
122123
@play="onPlayerPlay($event)"
123124
@pause="onPlayerPause($event)"
124125
@ended="onPlayerEnded($event)"
125-
@loadeddata="onPlayerLoadeddata($event)"
126126
@waiting="onPlayerWaiting($event)"
127127
@playing="onPlayerPlaying($event)"
128+
@loadeddata="onPlayerLoadeddata($event)"
128129
@timeupdate="onPlayerTimeupdate($event)"
129130
@canplay="onPlayerCanplay($event)"
130131
@canplaythrough="onPlayerCanplaythrough($event)"
131132
132-
title="or listen state change"
133133
@statechanged="playerStateChanged($event)"
134-
135-
title="The prepared event will be triggered after the videojs program instance completes, and its callback player object is the videojs callback function in this context"
136134
@ready="playerReadied">
137135
</video-player>
138136
</template>
@@ -196,7 +194,6 @@ export default {
196194

197195
# API
198196
- component api:
199-
* start(number, default: 0): The time at which the player starts playing
200197
* playsinline(boolean, default: false): set player not full-screen in mobile device
201198
* customEventName(string, default: 'statechanged'): custom the state change event name
202199

0 commit comments

Comments
 (0)