|
@@ -76,7 +76,7 @@ export default {
|
|
|
this.microphones = await TRTC.getMicrophones();
|
|
|
},
|
|
|
async initclient() {
|
|
|
- const res = await this.gensignFetch(this.id);
|
|
|
+ const res = await this.gensignFetch(this.user.uid);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.userSig_ = res.data;
|
|
|
console.log(res);
|
|
@@ -102,7 +102,7 @@ export default {
|
|
|
video: true,
|
|
|
cameraId: this.cameraId,
|
|
|
microphoneId: this.microphoneId,
|
|
|
- userId: this.userId_,
|
|
|
+ userId: this.user.uid,
|
|
|
});
|
|
|
await localStream_.initialize();
|
|
|
console.log('initialize local stream success');
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
//$('#mask_main').appendTo($('#player_' + this.localStream_.getId()));
|
|
|
},
|
|
|
async shareon() {
|
|
|
- const shareId = 'share-' + this.userId_;
|
|
|
+ const shareId = 'share-' + this.user.uid;
|
|
|
const res = await this.gensignFetch(shareId);
|
|
|
if (this.$checkRes(res)) {
|
|
|
const shareClient = TRTC.createClient({
|