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

vid+palyauth播放问题 #43

Open gavinlau opened 3 years ago

gavinlau commented 3 years ago

console.log(this.$refs.VueAliplayerV2.getPlayer().replayByVidAndPlayAuth) console.log(this.$refs.VueAliplayerV2.replayByVidAndPlayAuth) 均为undefined

langyuxiansheng commented 3 years ago

感谢反馈, 最近有点忙没看到GitHub的问题,我会抽时间看一下.

weisong5653 commented 3 years ago

@langyuxiansheng this.$refs.VueAliplayerV2.replay()和this.$refs.VueAliplayerV2.pause()也是undefined

langyuxiansheng commented 3 years ago

感谢反馈,在使用的时候若报错undefined,可以先把 this.$refs 对象打印出来看看是否有VueAliplayerV2的组件,或者有多个的时候 this.$refs.VueAliplayerV2 对象会变为数组.

weisong5653 commented 3 years ago

好的谢谢,已解决 @langyuxiansheng

langyuxiansheng commented 3 years ago

好的谢谢,已解决 @langyuxiansheng

不客气