0

main.js中去掉
// VideoPlayer.config({
// youtube: true,
// switcher: true,
// hls: true
// })
就会报以下错误:
vue.esm.js?65d7:434 [Vue warn]: Error in mounted hook: "TypeError: Cannot read property 'canPlaySource' of undefined"

found in

---> <VideoPlayer> at D:Webpackprovue-webpack-simolenode_modulesvue-video-playerplayer.vue

   <Park> at D:\Webpackpro\vue-webpack-simole\src\components\park.vue
     <App> at D:\Webpackpro\vue-webpack-simole\src\App.vue
       <Root>

加上之后:

main.js?3479:77 Uncaught TypeError: _vueVideoPlayer2.default.config is not a function

at eval (eval at <anonymous> (build.js:1919), <anonymous>:179:26)
at Object.<anonymous> (build.js:1919)
at __webpack_require__ (build.js:689)
at fn (build.js:110)
at Object.<anonymous> (build.js:3868)
at __webpack_require__ (build.js:689)
at build.js:790
at build.js:793



我想说一句----还要我怎样,视频才能播放

撰写答案