<live-player
:style="{
width: width,
height: height
}"
:src="data.playUrl"
:autoplay="false"
id="livePlayer"
@statechange="statechange"
@error="error"
/>
let id = 'livePlayer';
this.playerCtx = uni.createLivePlayerContext(id, this);
setTimeout(() => {
let that = this;
this.playerCtx.play({
success: function() {
console.log('成功了');
},
error: function() {
}
});
}, 100);
1 个回复
LOVE约定
我也同样未解决,好像是流的问题,尝试换组件