public static class AliyunSnapVideoParam.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public AliyunSnapVideoParam.Builder setResolutionMode(int resolutionMode)
AliyunSnapVideoParam.setRatioMode(int)
的值一起计算出来的resolutionMode
- AliyunSnapVideoParam.RESOLUTION_360P
,
AliyunSnapVideoParam.RESOLUTION_480P
,
AliyunSnapVideoParam.RESOLUTION_540P
,
AliyunSnapVideoParam.RESOLUTION_720P
public AliyunSnapVideoParam.Builder setResulutionMode(int resolutionMode)
setResolutionMode(int)
替代resolutionMode
- public AliyunSnapVideoParam.Builder setRatioMode(int ratioMode)
AliyunSnapVideoParam.setResolutionMode(int)
的值一起计算出ratioMode
- AliyunSnapVideoParam.RATIO_MODE_1_1
,
AliyunSnapVideoParam.RATIO_MODE_3_4
,
AliyunSnapVideoParam.RATIO_MODE_9_16
public AliyunSnapVideoParam.Builder setNeedRecord(boolean needClip)
needClip
- public AliyunSnapVideoParam.Builder setVideQuality(VideoQuality videoQuality)
setVideoQuality(VideoQuality)
替代videoQuality
- public AliyunSnapVideoParam.Builder setVideoQuality(VideoQuality videoQuality)
videoQuality
- VideoQuality
public AliyunSnapVideoParam.Builder setGop(int gop)
gop
- public AliyunSnapVideoParam.Builder setVideoBitrate(int bitrate)
bitrate
- public AliyunSnapVideoParam.Builder setFrameRate(int frameRate)
frameRate
- public AliyunSnapVideoParam.Builder setCropMode(VideoDisplayMode scaleMode)
scaleMode
- VideoDisplayMode
public AliyunSnapVideoParam.Builder setMinVideoDuration(int duration)
duration
- 单位是毫秒public AliyunSnapVideoParam.Builder setMaxVideoDuration(int duration)
duration
- 单位是毫秒public AliyunSnapVideoParam.Builder setRecordMode(int recordMode)
recordMode
- AliyunSnapVideoParam.RECORD_MODE_PRESS
,
AliyunSnapVideoParam.RECORD_MODE_TOUCH
,
AliyunSnapVideoParam.RECORD_MODE_AUTO
public AliyunSnapVideoParam.Builder setMinCropDuration(int duration)
duration
- 单位是毫秒public AliyunSnapVideoParam.Builder setFilterList(java.lang.String[] filterList)
filterList
- public AliyunSnapVideoParam.Builder setBeautyLevel(int beautyLevel)
beautyLevel
- [0,100] 0表示关闭美颜public AliyunSnapVideoParam.Builder setBeautyStatus(boolean beautyStatus)
beautyStatus
- true:开,false:关public AliyunSnapVideoParam.Builder setCameraType(CameraType cameraType)
cameraType
- CameraType
public AliyunSnapVideoParam.Builder setFlashType(FlashType flashType)
flashType
- public AliyunSnapVideoParam.Builder setMaxDuration(int maxDuration)
maxDuration
- public AliyunSnapVideoParam.Builder setMinDuration(int minDuration)
minDuration
- public AliyunSnapVideoParam.Builder setNeedClip(boolean needClip)
needClip
- true:多段录制,false:单段录制public AliyunSnapVideoParam.Builder setSortMode(int sortMode)
AliyunSnapVideoParam.SORT_MODE_PHOTO
,
AliyunSnapVideoParam.SORT_MODE_PHOTO
,
AliyunSnapVideoParam.SORT_MODE_PHOTO
。sortMode
- AliyunSnapVideoParam.SORT_MODE_PHOTO
, AliyunSnapVideoParam.SORT_MODE_PHOTO
, AliyunSnapVideoParam.SORT_MODE_PHOTO
public AliyunSnapVideoParam.Builder setCropUseGPU(boolean isUseGPU)
isUseGPU
- true:使用gpu, false:使用cpupublic AliyunSnapVideoParam.Builder setVideoCodec(VideoCodecs codec)
codec
- 默认是硬编VideoCodecs
public AliyunSnapVideoParam build()