0.4.2 • Published 6 years ago
vue-xgplayer v0.4.2
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