This commit is contained in:
tdg930622 2025-01-09 17:54:23 +08:00
parent f44044e0bd
commit ae07857972

View File

@ -83,7 +83,7 @@ export default {
}, },
data() { data() {
return { return {
zoomActive: true,// true 放大状态、false 缩小状态 zoomActive: true,// 布局状态
caseId: '', caseId: '',
arrPersonnel: [], arrPersonnel: [],
@ -101,8 +101,8 @@ export default {
personnelNumber: 1, personnelNumber: 1,
remoteUsersViews: [], remoteUsersViews: [],
audioRecordingSts: true, // 全部音频状态 true开启 false关闭 audioRecordingSts: true, // 全部音频状态
videoRecordingSts: false, // 录制状态 true开启 false关闭 videoRecordingSts: false, // 录制状态
startTime: null, startTime: null,
timerId: null, timerId: null,
duration: 0, // 记录录制时间(秒) duration: 0, // 记录录制时间(秒)
@ -291,7 +291,7 @@ export default {
async exitRoom() { async exitRoom() {
this.stopGetAudioLevel(); this.stopGetAudioLevel();
try { try {
await this.trtc.exitRoom();// 退出当前音视频通话房间 await this.trtc.exitRoom();
this.micStatus = false; this.micStatus = false;
this.personnelNumber = 1; this.personnelNumber = 1;
this.remoteUsersViews = []; this.remoteUsersViews = [];
@ -321,7 +321,7 @@ export default {
stopGetAudioLevel() { stopGetAudioLevel() {
this.trtc && this.trtc.enableAudioVolumeEvaluation(-1); // 开启或关闭音量大小回调 this.trtc && this.trtc.enableAudioVolumeEvaluation(-1); // 开启或关闭音量大小回调
}, },
// 流对象事件
installEventHandlers() { installEventHandlers() {
this.trtc.on(TRTC.EVENT.KICKED_OUT, this.handleKickedOut); this.trtc.on(TRTC.EVENT.KICKED_OUT, this.handleKickedOut);
this.trtc.on(TRTC.EVENT.REMOTE_VIDEO_AVAILABLE, this.handleRemoteVideoAvailable); this.trtc.on(TRTC.EVENT.REMOTE_VIDEO_AVAILABLE, this.handleRemoteVideoAvailable);