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

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

Loading…
Cancel
Save