| 
					
				 | 
			
			
				@@ -238,7 +238,7 @@ public class IMHelper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Async 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public IMApiResultInfo startRecord(String roomId, Long registrationId, List<RoomMember> roomMembers) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public IMApiResultInfo startRecord(String hostUserId, String roomId, Long registrationId, List<RoomMember> roomMembers) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (roomId == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             throw new IllegalArgumentException("Paramer 'roomId' is required"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -247,7 +247,21 @@ public class IMHelper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("videoFormat","mp4"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("audioFormat","mp3"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("videoResolution","640x480"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        jsonObject.put("mixLayout",1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("mixLayout",3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("sliceMin",60); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("hostUserId",hostUserId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        JSONObject json = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        json.put("sessionId",roomQuery(roomId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        json.put("config",jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /*JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("mode",3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("videoFormat","mp4"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("audioFormat","mp3"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("videoResolution","640x480"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("mixLayout",2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("sliceMin",30); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("renderMode",1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("hostUserId",""); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -277,7 +291,7 @@ public class IMHelper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         JSONObject jsonObject1 = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject1.put("video",jsonArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        jsonObject.put("input",jsonObject1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("input",jsonObject1);*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         json.put("sessionId",roomQuery(roomId)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -360,7 +374,7 @@ public class IMHelper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public IMApiResultInfo stopRecord(String roomId) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public IMApiResultInfo stopRecord(String hostUserId, String roomId) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (roomId == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             throw new IllegalArgumentException("Paramer 'roomId' is required"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -368,17 +382,17 @@ public class IMHelper { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        if (hostUserId == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //            throw new IllegalArgumentException("Paramer 'groupId' is required"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        /*JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("mode",3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("videoFormat","mp4"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("audioFormat","mp3"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("videoResolution","640x480"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("mixLayout",2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         jsonObject.put("sliceMin",30); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        jsonObject.put("hostUserId",hostUserId);*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        jsonObject.put("hostUserId",hostUserId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         JSONObject json = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         json.put("sessionId",roomQuery(roomId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        json.put("config",jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        json.put("config",jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String body = json.toJSONString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |