@@ -240,19 +240,10 @@ private void joinChannel(String channelId) {
240240 // Set audio route to microPhone
241241 engine .setDefaultAudioRoutetoSpeakerphone (true );
242242
243-
244- engine .startCameraCapture (Constants .VideoSourceType .VIDEO_SOURCE_CAMERA_PRIMARY , new CameraCapturerConfiguration (CameraCapturerConfiguration .CAMERA_DIRECTION .CAMERA_FRONT ));
245- // ScreenCaptureParameters screenCaptureParameters = new ScreenCaptureParameters();
246- // screenCaptureParameters.captureVideo = true;
247- // screenCaptureParameters.videoCaptureParameters.width = width;
248- // screenCaptureParameters.videoCaptureParameters.height = height;
249- // engine.startScreenCapture(screenCaptureParameters);
250-
251-
252243 LocalTranscoderConfiguration config = new LocalTranscoderConfiguration ();
253244 config .videoOutputConfiguration = new VideoEncoderConfiguration (
254245 new VideoEncoderConfiguration .VideoDimensions (width , height ),
255- VideoEncoderConfiguration .FRAME_RATE .FRAME_RATE_FPS_24 ,
246+ VideoEncoderConfiguration .FRAME_RATE .FRAME_RATE_FPS_15 ,
256247 STANDARD_BITRATE ,
257248 VideoEncoderConfiguration .ORIENTATION_MODE .ORIENTATION_MODE_ADAPTIVE
258249 );
@@ -267,14 +258,6 @@ private void joinChannel(String channelId) {
267258 config .transcodingVideoStreams .add (playerStream );
268259 mediaPlayer .play ();
269260
270-
271- LocalTranscoderConfiguration .TranscodingVideoStream screenStream = new LocalTranscoderConfiguration .TranscodingVideoStream ();
272- screenStream .sourceType = Constants .VideoSourceType .VIDEO_SOURCE_SCREEN_PRIMARY ;
273- screenStream .width = width ;
274- screenStream .height = height ;
275- screenStream .zOrder = 1 ;
276- config .transcodingVideoStreams .add (screenStream );
277-
278261 LocalTranscoderConfiguration .TranscodingVideoStream cameraStream = new LocalTranscoderConfiguration .TranscodingVideoStream ();
279262 cameraStream .sourceType = Constants .VideoSourceType .VIDEO_SOURCE_CAMERA_PRIMARY ;
280263 cameraStream .width = width / 2 ;
@@ -285,6 +268,8 @@ private void joinChannel(String channelId) {
285268 cameraStream .mirror = true ;
286269 config .transcodingVideoStreams .add (cameraStream );
287270
271+ engine .startCameraCapture (Constants .VideoSourceType .VIDEO_SOURCE_CAMERA_PRIMARY , new CameraCapturerConfiguration (CameraCapturerConfiguration .CAMERA_DIRECTION .CAMERA_FRONT ));
272+
288273 engine .startLocalVideoTranscoder (config );
289274
290275 // Create render view by RtcEngine
0 commit comments