Have ideas to improve npm?Join in the discussion! »

    vue-videojs-for-dimmies

    0.1.8 • Public • Published

    vue-videojs-for-dimmies

    Installation

    npm install video.js vue-videojs-for-dimmies
    # or
    yarn add video.js vue-videojs-for-dimmies

    Example

    <templete>
      <VueVideo
        :options="options" 
        :thumbnails="thumbnails"
      >
    </templete>
    
    <script>
    import VueVideo from 'vue-videojs-for-dimmies'
      
    export default {
      data () {
        return {
          thumbnails: { // (not required)
            src: 'demo/thumbnails.png',
            row: 7, 
            col: 10,
            height: 45,
            width: 80,
            total: 70
          }
          options: {} // docs for https://videojs.com  (required)
          addClassList: [] // add class list (not required)
        }
      }
      
      components: {
        VueVideo
      },
      
    }  
    </script>

    Options

    options prop document link

    thumbnails prop

    Option Type Description
    src String thumbnails sprites image
    row Number thumbnails sprites row
    row Number thumbnails sprites col
    width Number thumbnails width
    height Number thumbnails height
    total Number thumbnails sprites total

    Install

    npm i vue-videojs-for-dimmies

    DownloadsWeekly Downloads

    6

    Version

    0.1.8

    License

    MIT

    Unpacked Size

    11.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar