mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix: 会议回音
This commit is contained in:
parent
d11a89d02c
commit
91f3ea7c46
@ -225,14 +225,13 @@ export default {
|
||||
delete data.name;
|
||||
delete data.msgs;
|
||||
//
|
||||
$A.loadScript('js/AgoraRTC_N-4.17.0.js', e => {
|
||||
if (e !== null || typeof AgoraRTC !== 'object') {
|
||||
$A.modalError("会议组件加载失败!");
|
||||
} else {
|
||||
this.join(data)
|
||||
}
|
||||
$A.loadScript('js/AgoraRTC_N-4.17.0.js').then(_ => {
|
||||
this.join(data)
|
||||
}).catch(_ => {
|
||||
$A.modalError("会议组件加载失败!");
|
||||
}).finally(_ => {
|
||||
this.loadIng--;
|
||||
});
|
||||
})
|
||||
}).catch(({msg}) => {
|
||||
this.loadIng--;
|
||||
$A.modalError(msg);
|
||||
@ -323,7 +322,7 @@ export default {
|
||||
}
|
||||
// 音频或视频轨道自动播放失败回调
|
||||
AgoraRTC.onAutoplayFailed = () => {
|
||||
//
|
||||
$A.messageWarning("点击屏幕开始会议");
|
||||
}
|
||||
|
||||
// 创建客户端
|
||||
|
||||
@ -75,19 +75,13 @@ export default {
|
||||
watch: {
|
||||
audio: {
|
||||
handler(b) {
|
||||
if (this.isLocal || !b) {
|
||||
return
|
||||
}
|
||||
this.play('audio')
|
||||
b && this.play('audio')
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
video: {
|
||||
handler(b) {
|
||||
if (!b) {
|
||||
return
|
||||
}
|
||||
this.play('video')
|
||||
b && this.play('video')
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
@ -97,7 +91,7 @@ export default {
|
||||
this.$nextTick(_ => {
|
||||
try {
|
||||
if (type === 'audio') {
|
||||
this.player.audioTrack.play();
|
||||
!this.isLocal && this.player.audioTrack.play();
|
||||
} else if (type === 'video') {
|
||||
this.player.videoTrack.play(this.id);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user