videojs-markers icon indicating copy to clipboard operation
videojs-markers copied to clipboard

How can I use this plugin with vuejs?

Open jiayouwyhit opened this issue 7 years ago • 1 comments

I am trying to use this plugin with vuejs (more precisely, my vuejs code is based on the vuejs-cli template). So after I installed the source code of videojs-markers through "npm install videojs-markers --save", I tried to import both the css and js files of videojs-markers:

import "videojs-markers/dist/videojs.markers.css"; import "videojs-markers/dist/videojs-markers.js";

But it does not work. So is there anybody who have the same issue with me? What should I do? Thanks.

jiayouwyhit avatar Jun 25 '17 07:06 jiayouwyhit

I suggest using surmon-china/vue-video-player. If you don't want to, videojs-markers will self-register itself as a plugin to video.js. Just make sure you're importing those 2 dist files before you initialize your app. Import video.js first, then this plugin, then create your new Vue() app.

mheppner avatar Aug 28 '17 03:08 mheppner