vue-video-player

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



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

阅读 4.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题