main
SWX\10484 4 days ago
parent 002a283da4
commit 5a9b1f6e16
  1. 38
      src/views/videoCommunication/realTimeConsultation.vue

@ -497,24 +497,24 @@ export default {
methods: {
async creatRoom() {
try {
const res = await postConsultationCreate({
avatar: '',
init_users: [],
invite_code: '1234',
name: '',
room_id: this.$route.query.roomId_id
})
this.consultation_id = res.data.consultation_id
const ret = await postConsultationInfo({
consultation_id: res.data.consultation_id,
from_history: 0,
room_id: ''
})
this.meetingTitle = ret.data.name
this.meetingCode = ret.data.invite_code
this.participantCount = ret.data.user_num
this.userID = ret.data.user_id
this.roomID = ret.data.room_id
// const res = await postConsultationCreate({
// avatar: '',
// init_users: [],
// invite_code: '1234',
// name: '',
// room_id: this.$route.query.roomId_id
// })
// this.consultation_id = res.data.consultation_id
// const ret = await postConsultationInfo({
// consultation_id: res.data.consultation_id,
// from_history: 0,
// room_id: ''
// })
// this.meetingTitle = ret.data.name
// this.meetingCode = ret.data.invite_code
// this.participantCount = ret.data.user_num
// this.userID = ret.data.user_id
// this.roomID = ret.data.room_id
this.bindEvent();
this.initSDK()
} catch (error) {
@ -625,7 +625,7 @@ export default {
return;
}
const userName = this.$store.state.user.userInfo?.name || userID;
window.hirtcwebsdk.join(roomID, userID, userName);
window.hirtcwebsdk.join('1006110', 'ce84dbf44832bb97faa3bfd735f73c1b', '123123');
},
initLocalStream(type) {
if (this.localCameraStream.type === type) {

Loading…
Cancel
Save