vue-xgplayer
vue-xgplayer
xgplayer vue component
Installation
npm i vue-xgplayer -S
Usage
// main.js
import Vue from 'vue'
import VueXgplayer from 'vue-xgplayer'
Vue.use(VueXgplayer, {
// globalOptions
})
// YourComponent.vue
<template>
<xgplayer :options="playerOptions"></xgplayer>
</template>
<script>
export default {
data () {
return {
playerOptions: {
url: 'https://h5player.bytedance.com/video/mp4/xgplayer-demo-360p.mp4'
}
}
}
}
</script>
Examples
https://github.com/savokiss/vue-xgplayer/blob/master/examples/App.vue
Related Projects
License
MIT
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.4.2 | ^2.5.17 | ||
| 0.4.1 | ^2.5.17 | ||
| 0.4.0 | ^2.5.17 | ||
| 0.3.0 | ^2.5.17 | ||
| 0.2.4 | ^2.5.17 | ||
| 0.2.3 | ^2.5.17 | ||
| 0.2.2 | ^2.5.17 | ||
| 0.2.1 | ^2.5.17 | ||
| 0.2.0 | ^2.5.17 | ||
| 0.1.5 | ^2.5.17 | ||
| 0.1.4 | ^2.5.17 | ||
| 0.1.3 | ^2.5.17 | ||
| 0.1.2 | ^2.5.17 | ||
| 0.1.1 | ^2.5.17 |