@forlagshuset/v-video-player-vjs
## Installation
Last updated a month ago by daniel.wiadro .
MIT · Original npm · Tarball · package.json
$ cnpm install @forlagshuset/v-video-player-vjs 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.5                                ...           latest (a month ago)

5 Versions

  • 0.1.5                                ...           a month ago
  • 0.1.4                                ...           a month ago
  • 0.1.3                                ...           2 months ago
  • 0.1.2                                ...           3 months ago
  • 0.1.1                                ...           3 months ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 21
Dependencies (1)
Dev Dependencies (12)

Copyright 2014 - 2016 © taobao.org |