kaishiqingqiu

This commit is contained in:
2020-11-30 18:03:06 +08:00
parent fd4eb1488e
commit aa2bf1b858
2 changed files with 6 additions and 2 deletions

View File

@@ -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({