langyuxiansheng / vue-aliplayer-v2

这是一个基于Alipayer 开发并封装成vue组件的播放器.可播放rtmp,m3u8,mp4....视频.除支持直播流与点播的基础功能外,也支持视频的加密播放、清晰度切换、直播时移等业务场景等.https://help.aliyun.com/document_detail/125548.html?spm=a2c4g.11186623.3.3.4bafbf80OVkZJ9
https://langyuxiansheng.github.io/vue-aliplayer-v2/
MIT License
275 stars 59 forks source link

安装之后引用就直接报这个问题 #35

Open yangjiandu2 opened 3 years ago

yangjiandu2 commented 3 years ago

image vue-aliplayer-v2.umd.min.js?5806:1 Uncaught (in promise) TypeError: Cannot read property '_c' of undefined at Proxy.i (vue-aliplayer-v2.umd.min.js?5806:1) at renderComponentRoot (runtime-core.esm-bundler.js?5c40:710) at componentEffect (runtime-core.esm-bundler.js?5c40:4193) at reactiveEffect (reactivity.esm-bundler.js?a1e9:42) at effect (reactivity.esm-bundler.js?a1e9:17) at setupRenderEffect (runtime-core.esm-bundler.js?5c40:4176) at mountComponent (runtime-core.esm-bundler.js?5c40:4134) at processComponent (runtime-core.esm-bundler.js?5c40:4094) at patch (runtime-core.esm-bundler.js?5c40:3715) at mountChildren (runtime-core.esm-bundler.js?5c40:3897)

langyuxiansheng commented 3 years ago

你好,感谢反馈,这个可能是vue的版本过高导致,目前这个插件是基于2.x开发的,如果使用3.0版本的vue,可能会出现报错,在vue正式版本发布之后会做3.x的兼容支持。

liho98 commented 3 years ago

@langyuxiansheng vue3正式版本已经发布了,我还是得到这个报错

liho98 commented 3 years ago

https://github.com/liho98/vue-aliplayer-v2 我用vite和源代码发布了一个只支持vue3的阿里云播放器,因作者是用webpack为主,我未能创建Pull Request。敬请见谅

npm i vue-aliplayer-v3 --save
or
yarn add vue-aliplayer-v3
import { AliPlayerV3 } from "vue-aliplayer-v3"; 
components:{ AliPlayerV3 }