Vue2.x之使用vue-video-player时Uncaught TypeError: Cannot read property 'EventTarget' of undefined

###好多人问,可以看这里:

import ‘videojs-contrib-hls’;
//require(‘videojs-contrib-hls/dist/videojs-contrib-hls’);

import VideoPlayer from 'vue-video-player'

require('video.js/dist/video-js.css');
require('vue-video-player/src/custom-theme.css');
import 'videojs-contrib-hls';
 //require('videojs-contrib-hls/dist/videojs-contrib-hls');

参考文章:
https://blog.csdn.net/believeXin/article/details/79269718
https://blog.csdn.net/fei565789229/article/details/78925395

你可能感兴趣的:(vue-js)