TerryZ / v-playback

A Vue2 plugin to make video play easier
https://terryz.github.io/vue/#/playback
MIT License
18 stars 3 forks source link
javascript video videojs vuejs



v-playback


v-playback

A Vue2 plugin to make video play easier






Examples、Documentation and Changelog

Explorer on

Installation

npm i -S v-playback

Include plugin in your main.js file.

import Vue from 'vue'
import PlayBack from 'v-playback'
Vue.use(PlayBack)

Deploy on component

<template>
  <v-playback :url="url" ></v-playback>
</template>

<script>
export default {
  data () {
    return {
      url: 'https://your-site/your-video.mp4'
    }
  }
}
</script>

Dependencies

video.js