请求接口

This commit is contained in:
2020-11-30 18:03:59 +08:00
parent aa2bf1b858
commit ad7ed07706
58 changed files with 69 additions and 65 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({