A Vue2 plugin to make video play easier

v-playback

A Vue2 plugin to make video play easier.

Install

npm install v-playback --save

Include plugin in your main.js file.

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

Deploy on your component

template

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

script

export default {
    data(){
        return {
            url: 'http://xxx.com/111.mp4'
        }
    }
};

GitHub