public class AliyunSnapVideoParam
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AliyunSnapVideoParam.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEAUTY_LEVEL |
static java.lang.String |
BEAUTY_STATUS |
static java.lang.String |
CAMERA_TYPE |
static java.lang.String |
CROP_MODE |
static java.lang.String |
CROP_USE_GPU |
static java.lang.String |
FILTER_LIST |
static java.lang.String |
FLASH_TYPE |
static java.lang.String |
MAX_DURATION |
static java.lang.String |
MAX_VIDEO_DURATION |
static java.lang.String |
MIN_CROP_DURATION |
static java.lang.String |
MIN_DURATION |
static java.lang.String |
MIN_VIDEO_DURATION |
static java.lang.String |
NEED_CLIP |
static java.lang.String |
NEED_RECORD |
static int |
RATIO_MODE_1_1
Set the aspect ratio to 1:1.
|
static int |
RATIO_MODE_3_4
Set the aspect ratio to 3:4.
|
static int |
RATIO_MODE_9_16
Set the aspect ratio to 9:16.
|
static java.lang.String |
RECORD_MODE |
static int |
RECORD_MODE_AUTO
Support both
RECORD_MODE_PRESS and RECORD_MODE_TOUCH . |
static int |
RECORD_MODE_PRESS
Press to record.
|
static int |
RECORD_MODE_TOUCH
Press once to start recording.
|
static int |
RESOLUTION_360P |
static int |
RESOLUTION_480P |
static int |
RESOLUTION_540P |
static int |
RESOLUTION_720P |
static VideoDisplayMode |
SCALE_CROP |
static VideoDisplayMode |
SCALE_FILL |
static java.lang.String |
SORT_MODE |
static int |
SORT_MODE_MERGE
Display both video and image files.
|
static int |
SORT_MODE_PHOTO
Only display image files.
|
static int |
SORT_MODE_VIDEO
Only display video files.
|
static java.lang.String |
VIDEO_BITRATE |
static java.lang.String |
VIDEO_CODEC |
static java.lang.String |
VIDEO_FRAMERATE |
static java.lang.String |
VIDEO_GOP |
static java.lang.String |
VIDEO_QUALITY |
static java.lang.String |
VIDEO_RATIO |
static java.lang.String |
VIDEO_RESOLUTION |
Constructor and Description |
---|
AliyunSnapVideoParam() |
Modifier and Type | Method and Description |
---|---|
int |
getBeautyLevel() |
boolean |
getBeautyStatus() |
CameraType |
getCameraType()
Gets the camera type.
|
java.lang.String[] |
getFilterList() |
FlashType |
getFlashType()
Gets the flash mode.
|
int |
getFrameRate() |
int |
getGop() |
int |
getMaxDuration() |
int |
getMaxVideoDuration() |
int |
getMinCropDuration() |
int |
getMinDuration() |
int |
getMinVideoDuration() |
int |
getRatioMode() |
int |
getRecordMode() |
int |
getResolutionMode() |
VideoDisplayMode |
getScaleMode() |
int |
getSortMode() |
int |
getVideoBitrate() |
VideoCodecs |
getVideoCodec() |
VideoQuality |
getVideoQuality() |
boolean |
isCropUseGPU() |
boolean |
isNeedClip() |
boolean |
isNeedRecord() |
void |
setBeautyLevel(int mBeautyLevel)
Sets the beauty level.
|
void |
setBeautyStatus(boolean mBeautyStatus)
Enables or disables beauty mode.
|
void |
setCameraType(CameraType mCameraType) |
void |
setCropUseGPU(boolean isUseGPU)
Sets whether to use GPU during cropping.
|
void |
setFilterList(java.lang.String[] mFilterList)
Sets a list of filter effects.
|
void |
setFlashType(FlashType mFlashType)
Sets the flash mode.
|
void |
setFrameRate(int mFrameRate)
Sets the frame rate.
|
void |
setGop(int mGop)
Sets the GOP size in frames.
|
void |
setMaxDuration(int mMaxDuration)
Sets the maximum recording duration.
|
void |
setMaxVideoDuration(int mMaxVideoDuration)
Sets the maximum video duration on the video selection page.
|
void |
setMinCropDuration(int mMinCropDuration)
Sets the minimum video duration during cropping.
|
void |
setMinDuration(int mMinDuration)
Sets the minimum recording duration.
|
void |
setMinVideoDuration(int mMinVideoDuration)
Sets the minimum video duration on the video selection page.
|
void |
setNeedClip(boolean mNeedClip)
Sets whether to record multiple clips.
|
void |
setNeedRecord(boolean mNeedClip)
Sets whether to display the Record option on the video selection page.
|
void |
setRatioMode(int mRatioMode)
Sets the aspect ratio.
|
void |
setRecordMode(int mRecordMode)
Sets the recording mode.
|
void |
setResolutionMode(int mResolutionMode)
Sets the base for calculating the resolution.
|
void |
setScaleMode(VideoDisplayMode mCropMode)
Sets the crop mode.
|
void |
setSortMode(int sortMode)
Sets the filter mode on the media file selection page.
|
void |
setVideoBitrate(int bitrate)
Sets the bitrate in kbit/s.
|
void |
setVideoCodec(VideoCodecs codec)
Sets the encoding mode.
|
void |
setVideoQuality(VideoQuality mVideoQuality)
Sets the video quality.
|
public static final java.lang.String CROP_MODE
public static final java.lang.String VIDEO_FRAMERATE
public static final java.lang.String VIDEO_GOP
public static final java.lang.String VIDEO_BITRATE
public static final java.lang.String NEED_RECORD
public static final java.lang.String MAX_VIDEO_DURATION
public static final java.lang.String MIN_VIDEO_DURATION
public static final java.lang.String MIN_CROP_DURATION
public static final java.lang.String VIDEO_RESOLUTION
public static final java.lang.String MIN_DURATION
public static final java.lang.String MAX_DURATION
public static final java.lang.String VIDEO_QUALITY
public static final java.lang.String VIDEO_RATIO
public static final java.lang.String RECORD_MODE
public static final java.lang.String FILTER_LIST
public static final java.lang.String BEAUTY_STATUS
public static final java.lang.String BEAUTY_LEVEL
public static final java.lang.String CAMERA_TYPE
public static final java.lang.String FLASH_TYPE
public static final java.lang.String NEED_CLIP
public static final java.lang.String SORT_MODE
public static final java.lang.String CROP_USE_GPU
public static final java.lang.String VIDEO_CODEC
public static final VideoDisplayMode SCALE_CROP
public static final VideoDisplayMode SCALE_FILL
public static final int SORT_MODE_VIDEO
public static final int SORT_MODE_PHOTO
public static final int SORT_MODE_MERGE
public static final int RATIO_MODE_3_4
public static final int RATIO_MODE_1_1
public static final int RATIO_MODE_9_16
public static final int RESOLUTION_360P
public static final int RESOLUTION_480P
public static final int RESOLUTION_540P
public static final int RESOLUTION_720P
public static final int RECORD_MODE_TOUCH
public static final int RECORD_MODE_PRESS
public static final int RECORD_MODE_AUTO
RECORD_MODE_PRESS
and RECORD_MODE_TOUCH
.public int getSortMode()
public void setSortMode(int sortMode)
sortMode
- SORT_MODE_VIDEO
,
SORT_MODE_PHOTO
,
SORT_MODE_MERGE
public void setCropUseGPU(boolean isUseGPU)
isUseGPU
- true indicates use GPU. false indicates use CPU.public int getRecordMode()
public void setRecordMode(int mRecordMode)
mRecordMode
- RECORD_MODE_PRESS
,
RECORD_MODE_TOUCH
,
RECORD_MODE_AUTO
public boolean isNeedClip()
public void setNeedClip(boolean mNeedClip)
mNeedClip
- true indicates record multiple clips. false indicates record one clip only.public boolean getBeautyStatus()
public void setBeautyStatus(boolean mBeautyStatus)
mBeautyStatus
- true indicates enable. false indicates disable.public java.lang.String[] getFilterList()
public void setFilterList(java.lang.String[] mFilterList)
mFilterList
- public int getBeautyLevel()
public CameraType getCameraType()
CameraType
public void setCameraType(CameraType mCameraType)
public FlashType getFlashType()
FlashType
public void setFlashType(FlashType mFlashType)
mFlashType
- public void setBeautyLevel(int mBeautyLevel)
mBeautyLevel
- level Valid values: [0, 100]. 0 indicates disable beauty mode.public int getMaxDuration()
public void setMaxDuration(int mMaxDuration)
mMaxDuration
- public int getMinDuration()
public void setMinDuration(int mMinDuration)
mMinDuration
- public int getMinVideoDuration()
public void setMinVideoDuration(int mMinVideoDuration)
mMinVideoDuration
- Unit: milliseconds.public int getMaxVideoDuration()
public void setMaxVideoDuration(int mMaxVideoDuration)
mMaxVideoDuration
- Unit: milliseconds.public int getMinCropDuration()
public void setMinCropDuration(int mMinCropDuration)
mMinCropDuration
- Unit: milliseconds.public boolean isCropUseGPU()
public int getFrameRate()
public void setFrameRate(int mFrameRate)
mFrameRate
- public VideoDisplayMode getScaleMode()
public void setScaleMode(VideoDisplayMode mCropMode)
mCropMode
- VideoDisplayMode
public int getResolutionMode()
public void setResolutionMode(int mResolutionMode)
setRatioMode(int)
.mResolutionMode
- RESOLUTION_360P
,
RESOLUTION_480P
,
RESOLUTION_540P
,
RESOLUTION_720P
public int getRatioMode()
public void setRatioMode(int mRatioMode)
setResolutionMode(int)
.mRatioMode
- RATIO_MODE_1_1
,
RATIO_MODE_3_4
,
RATIO_MODE_9_16
public boolean isNeedRecord()
public void setNeedRecord(boolean mNeedClip)
mNeedClip
- public VideoQuality getVideoQuality()
public void setVideoQuality(VideoQuality mVideoQuality)
mVideoQuality
- VideoQuality
public int getGop()
public void setGop(int mGop)
mGop
- public void setVideoBitrate(int bitrate)
bitrate
- public int getVideoBitrate()
public void setVideoCodec(VideoCodecs codec)
codec
- Default is hardware encoding.VideoCodecs
public VideoCodecs getVideoCodec()