|
|
@@ -12,6 +12,8 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
@Component
|
|
|
public class CreateCloudRecording {
|
|
|
+ private final static Long VIDEO_WITH = 640L;
|
|
|
+ private final static Long VIDEO_HEIGHT = 480L;
|
|
|
|
|
|
/**
|
|
|
* 停止录制
|
|
|
@@ -70,8 +72,8 @@ public class CreateCloudRecording {
|
|
|
mixLayout1.setUserId(trtc.getAppUserId());
|
|
|
mixLayout1.setTop(0L);
|
|
|
mixLayout1.setLeft(0L);
|
|
|
- mixLayout1.setWidth(720L);
|
|
|
- mixLayout1.setHeight(1280L);
|
|
|
+ mixLayout1.setWidth(VIDEO_HEIGHT);
|
|
|
+ mixLayout1.setHeight(VIDEO_WITH);
|
|
|
mixLayout1.setMediaId(1L);
|
|
|
mixLayout1.setRenderMode(1l);
|
|
|
mixLayouts1[0] = mixLayout1;
|
|
|
@@ -147,8 +149,8 @@ public class CreateCloudRecording {
|
|
|
|
|
|
MixTranscodeParams mixTranscodeParams1 = new MixTranscodeParams();
|
|
|
VideoParams videoParams1 = new VideoParams();
|
|
|
- videoParams1.setWidth(1280L);
|
|
|
- videoParams1.setHeight(720L);
|
|
|
+ videoParams1.setWidth(VIDEO_WITH);
|
|
|
+ videoParams1.setHeight(VIDEO_HEIGHT);
|
|
|
videoParams1.setFps(25L);
|
|
|
videoParams1.setBitRate(64000L);
|
|
|
videoParams1.setGop(1L);
|
|
|
@@ -161,8 +163,8 @@ public class CreateCloudRecording {
|
|
|
mixLayout1.setUserId("share_" + trtc.getPcUserId());
|
|
|
mixLayout1.setTop(0L);
|
|
|
mixLayout1.setLeft(0L);
|
|
|
- mixLayout1.setWidth(1280L);
|
|
|
- mixLayout1.setHeight(720L);
|
|
|
+ mixLayout1.setWidth(VIDEO_WITH);
|
|
|
+ mixLayout1.setHeight(VIDEO_HEIGHT);
|
|
|
mixLayouts1[0] = mixLayout1;
|
|
|
mixLayoutParams1.setMixLayoutList(mixLayouts1);
|
|
|
mixLayoutParams1.setMixLayoutMode(4L);
|
|
|
@@ -238,8 +240,8 @@ public class CreateCloudRecording {
|
|
|
|
|
|
MixTranscodeParams mixTranscodeParams1 = new MixTranscodeParams();
|
|
|
VideoParams videoParams1 = new VideoParams();
|
|
|
- videoParams1.setWidth(720L);
|
|
|
- videoParams1.setHeight(1280L);
|
|
|
+ videoParams1.setWidth(VIDEO_HEIGHT);
|
|
|
+ videoParams1.setHeight(VIDEO_WITH);
|
|
|
videoParams1.setFps(25L);
|
|
|
videoParams1.setBitRate(64000L);
|
|
|
videoParams1.setGop(1L);
|
|
|
@@ -252,8 +254,8 @@ public class CreateCloudRecording {
|
|
|
mixLayout1.setUserId(trtc.getAppUserId());
|
|
|
mixLayout1.setTop(0L);
|
|
|
mixLayout1.setLeft(0L);
|
|
|
- mixLayout1.setWidth(720L);
|
|
|
- mixLayout1.setHeight(1280L);
|
|
|
+ mixLayout1.setWidth(VIDEO_HEIGHT);
|
|
|
+ mixLayout1.setHeight(VIDEO_WITH);
|
|
|
mixLayout1.setMediaId(1l);
|
|
|
mixLayout1.setRenderMode(1l);
|
|
|
|