Skip to content

Commit ba8bd35

Browse files
committed
update readme.md
1 parent 3ceb324 commit ba8bd35

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
[Video.js](https://github.com/videojs/video.js) player component for Vue2.
1212

1313

14+
# Update
15+
The latest version of the update, I hope the component itself is a simple and lightweight player, in addition to the videojs core library itself, no other packages; if you need other videojs extensions, you need to import the corresponding scriptjs plugin in the entry script file or component script Resource package.
16+
1417
# Example
1518
[Demo Page](https://surmon-china.github.io/vue-video-player)
1619

@@ -46,6 +49,10 @@ if (process.BROWSER_BUILD) {
4649
Vue.use(VueVideoPlayer)
4750
}
4851

52+
// If you need to use more videojs extensions, you can introduce the corresponding videojs plug-in package before the vue program is instantiated, such as:
53+
require('some-videojs-plugin')
54+
// require more plugin resource...
55+
4956
// mount with component(can't work in Nuxt.js/SSR)
5057
import { videoPlayer } from 'vue-video-player'
5158

@@ -117,6 +124,8 @@ export default {
117124
</template>
118125
119126
<script>
127+
// Similarly, you can also introduce the plugin resource pack you want to use within the component
128+
// require('some-videojs-plugin')
120129
export default {
121130
data() {
122131
return {
@@ -201,7 +210,7 @@ export default {
201210
- [videojs-youtube](https://github.com/videojs/videojs-youtube)
202211
- [videojs-vimeo](https://github.com/videojs/videojs-vimeo)
203212
- [videojs-hotkeys](https://github.com/ctd1500/videojs-hotkeys)
204-
- [more ...](https://github.com/search?o=desc&q=videojs+plugin&s=stars&type=Repositories&utf8=%E2%9C%93)
213+
- [more plugins...](https://github.com/search?o=desc&q=videojs+plugin&s=stars&type=Repositories&utf8=%E2%9C%93)
205214

206215

207216
# Author Blog

0 commit comments

Comments
 (0)