1.0.5 • Published 2 years ago
tyjwlive v1.0.5
tyjwlive
简单好用的webrtc播放器组件
使用说明
# 1、安装
npm install tyjwlive
# 2、引用
main.js中
import tyjwLive from 'tyjwlive'
Vue.use(tyjwLive)
父组件中加载组件
<Main :ref="playerWin" :url="liveUrl"/>
# 参数说明
url: webrtc协议拉流地址
# 方法说明
播放:play()
销毁:destroyEvent()
全屏:fullScreenEvent()
声音开关:soundEvent()
父组件调用示例:this.$refs.playerWin.play();