From aa2bf1b858cf6ae4342ad7bf6c1a87633055c95b Mon Sep 17 00:00:00 2001 From: unknown <1162963624@qq.com> Date: Mon, 30 Nov 2020 18:03:06 +0800 Subject: [PATCH] kaishiqingqiu --- public/js/rtc-client.js | 6 +++++- src/views/regime/Liveing.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/js/rtc-client.js b/public/js/rtc-client.js index 4d2f97e..80a19e4 100644 --- a/public/js/rtc-client.js +++ b/public/js/rtc-client.js @@ -36,7 +36,11 @@ class RtcClient { }); console.log('join room success'); this.isJoined_ = true; - + $.ajax({ + url: window.url + 'StartMCUMixTranscode?roomid=' + window.roomid, + headers: { "Authorization": "Bearer " + localStorage.getItem("token")} + + }) // create a local stream with audio/video from microphone/camera if (getCameraId() && getMicrophoneId()) { this.localStream_ = TRTC.createStream({ diff --git a/src/views/regime/Liveing.vue b/src/views/regime/Liveing.vue index 8e7422f..1b6878d 100644 --- a/src/views/regime/Liveing.vue +++ b/src/views/regime/Liveing.vue @@ -17,7 +17,7 @@ export default defineComponent({ const url = ref() if(id && typeof id == 'string'){ getliveinfo(parseInt(id)).then((res: any)=>{ - luzhi(res.roomid) + // luzhi(res.roomid) url.value = `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}&liveid=${res.liveid}` })