| 
					
				 | 
			
			
				@@ -18,6 +18,7 @@ import javax.annotation.Resource; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.validation.Valid; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Optional; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 直播房间管理表(ImLiveBroadcastRoom)表控制层 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -91,9 +92,11 @@ public class TeacherImLiveBroadcastRoomController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/opsLiveVideo") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public HttpResponseResult<Object> opsLiveVideo(@ApiParam(value = "房间uid", required = true) String roomUid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                    @ApiParam(value = "用户id", required = true) Integer userId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                   @ApiParam(value = "type 1:开始直播-开始录像     2:关闭直播关闭录像", required = true) Integer type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                   @ApiParam(value = "type 1:开始直播-开始录像     2:关闭直播关闭录像", required = true) Integer type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                   @ApiParam(value = "录制视频的尺寸-默认值是720x1280") String videoResolution) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (type == 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            imLiveBroadcastRoomService.startLive(roomUid, userId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            videoResolution = Optional.ofNullable(videoResolution).orElse("720x1280"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            imLiveBroadcastRoomService.startLive(roomUid, userId, videoResolution); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else if (type == 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             imLiveBroadcastRoomService.closeLive(roomUid, userId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 |