vue-xgplayer
xgplayer vue component.
Installation
Usage
Examples
https://github.com/savokiss/vue-xgplayer/blob/master/examples/App.vue
Props
Prop | Type | Default | Info |
---|---|---|---|
id | String |
xgplayer_${random()} |
Optional. The dom id |
options | Object |
{} |
The url property is required. |
aspect | String |
'16by9' |
Optional. Aspect ratio for auto resize video height. |
noDestroy | Boolean |
false |
Optional. Wont destroy player when component destroy |
Methods
Method | Info |
---|---|
reload | Will call player.reload() |
destroy | Will call player.destroy() |