|
|
|
@ -458,7 +458,7 @@ export default { |
|
|
|
window.hirtcwebsdk.init({ |
|
|
|
window.hirtcwebsdk.init({ |
|
|
|
serviceID: '56da5fd8921f4f7093a42e2a', |
|
|
|
serviceID: '56da5fd8921f4f7093a42e2a', |
|
|
|
serviceKey: '2c17c6393771ee3048ae34d6b965sdew', |
|
|
|
serviceKey: '2c17c6393771ee3048ae34d6b965sdew', |
|
|
|
Services: { BasicRoomServiceToken: "https://192.168.69.174:3001/v1/auth/token" }, |
|
|
|
BasicRoomServiceToken: "https://192.168.69.174:3001/v1/auth/token", |
|
|
|
cameraLayers: [ |
|
|
|
cameraLayers: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
width: 320, |
|
|
|
width: 320, |
|
|
|
@ -492,12 +492,11 @@ export default { |
|
|
|
const uid = String(this.$store.state.user.id || Date.now()); |
|
|
|
const uid = String(this.$store.state.user.id || Date.now()); |
|
|
|
const uName = (this.$store.state.user.name || '用户').trim(); |
|
|
|
const uName = (this.$store.state.user.name || '用户').trim(); |
|
|
|
console.log(roomId, uid, uName) |
|
|
|
console.log(roomId, uid, uName) |
|
|
|
|
|
|
|
window.hirtcwebsdk.join('1006110', uid, uName); |
|
|
|
window.hirtcwebsdk.addListener('joined', () => { |
|
|
|
window.hirtcwebsdk.addListener('joined', () => { |
|
|
|
this.$message.success('加入会议成功'); |
|
|
|
this.$message.success('加入会议成功'); |
|
|
|
this.updateParticipantCount(); |
|
|
|
this.updateParticipantCount(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
window.hirtcwebsdk.join(this.$route.query.roomId_id, uid, uName); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.hirtcwebsdk.addListener('user-joined', this.updateParticipantCount); |
|
|
|
window.hirtcwebsdk.addListener('user-joined', this.updateParticipantCount); |
|
|
|
window.hirtcwebsdk.addListener('user-left', this.updateParticipantCount); |
|
|
|
window.hirtcwebsdk.addListener('user-left', this.updateParticipantCount); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|