0.2.16 • Published 2 years ago
@forlagshuset/v-video-player-vjs v0.2.16
Customizable VideoPlayer component
Installation
npm install @forlagshuset/v-video-player-vjs
Usage
import FHVideoPlayer from '@forlagshuset/v-video-player-vjs'
export default {
data() {
return {
videoUrl: '',
videoType: 'video/mp4',
videoAttributes: {
poster: '',
crossorigin: '',
playsinline: '',
controls: ''
},
captions: [
{
label: 'Norwegian Nynorsk',
srclang: 'nn',
src: '',
},
{
label: 'Norwegian Bokmål',
srclang: 'nb',
src: ''
}
],
options: {
playbackRates: [0.5, 1, 1.5, 2],
language: 'nb'
}
}
},
components: {
FHVideoPlayer
}
}
Props
FHVideoPlayerVJS accepts these props:
props: {
videoUrl: {
type: String,
default: null,
required: true
},
videoType: {
type: String,
default: 'video/mp4'
},
videoAttributes: {
type: Object,
default: null
},
captions: {
type: Array,
default: null,
required: true
},
chapters: {
type: Array
},
options: {
type: Object,
default: obj => {
/*
Available options from VJS: https://docs.videojs.com/tutorial-options.html
Component specific:
skipTime: Number
*/
}
}
},
Uses video.js
plugin.
0.2.16
2 years ago
0.2.14
3 years ago
0.2.13
3 years ago
0.2.12
3 years ago
0.2.11
3 years ago
0.2.10
3 years ago
0.2.9
3 years ago
0.2.8
3 years ago
0.2.7
3 years ago
0.2.6
3 years ago
0.2.5
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.4
3 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago