kaishiqingqiu
This commit is contained in:
		
							parent
							
								
									fd4eb1488e
								
							
						
					
					
						commit
						aa2bf1b858
					
				| @ -36,7 +36,11 @@ class RtcClient { | |||||||
|       }); |       }); | ||||||
|       console.log('join room success'); |       console.log('join room success'); | ||||||
|       this.isJoined_ = true; |       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
 |       // create a local stream with audio/video from microphone/camera
 | ||||||
|       if (getCameraId() && getMicrophoneId()) { |       if (getCameraId() && getMicrophoneId()) { | ||||||
|         this.localStream_ = TRTC.createStream({ |         this.localStream_ = TRTC.createStream({ | ||||||
|  | |||||||
| @ -17,7 +17,7 @@ export default defineComponent({ | |||||||
|         const url = ref<string>() |         const url = ref<string>() | ||||||
|         if(id && typeof id == 'string'){ |         if(id && typeof id == 'string'){ | ||||||
|             getliveinfo(parseInt(id)).then((res: any)=>{ |             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}` |                 url.value = `/zhibo.html?roomid=${res.roomid}&memberid=${res.memberid}&name=${escape(store.state.userinfo.name)}&liveid=${res.liveid}` | ||||||
|             }) |             }) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user