- SCALE_CROP - 类 中的静态变量com.aliyun.struct.common.CropKey
-
- SCALE_FILL - 类 中的静态变量com.aliyun.struct.common.CropKey
-
- scaleMode(ScaleMode) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam.Builder
-
设置视频画面裁剪模式
- ScaleMode - com.aliyun.struct.common中的枚举
-
- setBeautyLevel(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置美颜度
- setBeautyStatus(boolean) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置美颜开/关
- setBitmap(Bitmap) - 类 中的方法com.aliyun.struct.effect.EffectPaint
-
- setBitrate(int) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setCamera(CameraType) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置摄像头类型
- setCameraParam(CameraParam) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置摄像头预览参数
- setCanvasInfo(CanvasInfo) - 类 中的方法com.aliyun.struct.effect.EffectPaint
-
- setCrf(int) - 类 中的方法com.aliyun.struct.recorder.MediaInfo
-
当编码格式为VideoCodecs.H264_SOFT_FFMPEG时,该值有效
- setCropCallback(CropCallback) - 接口 中的方法com.aliyun.crop.supply.AliyunICrop
-
设置裁剪回调
- setCropParam(CropParam) - 接口 中的方法com.aliyun.crop.supply.AliyunICrop
-
设置裁剪参数
- setCropRect(Rect) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置裁剪区域
- setDisplayView(GLSurfaceView) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置显示预览的GLSurfaceView
- setDuration(long) - 类 中的方法com.aliyun.struct.effect.EffectBean
-
设置特效作用持续时间,目前只对音乐有效,单位微秒,即从开始时间点开始特效的作用时间长度
- setDuration(long) - 类 中的方法com.aliyun.struct.effect.EffectFilter
-
设置时长 单位:ms
- setEffectView(float, float, float, float, EffectBase) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置特效信息(位置,大小)
- setEncoderFps(int) - 类 中的方法com.aliyun.struct.recorder.MediaInfo
-
设置编码帧率
- setEncoderInfoCallback(EncoderInfoCallback) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置编码信息回调
- setEndTime(long) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置裁剪的结束时间
- setExposureCompensationRatio(float) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置曝光度比例
- setExposureCompensationRatio(float) - 类 中的方法com.aliyun.struct.recorder.CameraParam
-
设置曝光度[0, 1]
- setFaceDetectRotation(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置单独的人脸识别角度,如果使用本接口,请不要使用setRotation
- setFaces(float[][]) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
- setFaceTrackInternalMaxFaceCount(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置内置人脸识别的最大识别数,最大为3个,大于3个为3个
- setFaceTrackInternalModelPath(String) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置人脸识别模型文件夹路径
这里必须是包含模型文件的目录路径,模型文件的文件名不能修改
- setFillColor(int) - 类 中的方法com.aliyun.crop.struct.CropParam
-
- setFlashType(String) - 类 中的方法com.aliyun.struct.recorder.CameraParam
-
设置闪光灯模式
- setFocus(Point) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
已过时。
- setFocus(float, float) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
- setFocusMode(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置聚焦模式
- setFocusMode(int) - 类 中的方法com.aliyun.struct.recorder.CameraParam
-
设置对焦模式
- setFps(int) - 类 中的方法com.aliyun.struct.recorder.MediaInfo
-
- setFrameRate(int) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置帧率
单位:fps
- setFrameRate(int) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setGop(int) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置GOP大小
- setGop(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置Gop大小
- setGop(int) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setHWAutoSize(boolean) - 类 中的方法com.aliyun.crop.struct.CropParam
-
- setHWAutoSize(boolean) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setHWAutoSize(boolean) - 类 中的方法com.aliyun.struct.recorder.MediaInfo
-
- setId(int) - 类 中的方法com.aliyun.struct.effect.EffectBean
-
设置资源ID
- setInputPath(String) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置输出路径
- setLight(FlashType) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置闪光灯模式
- setMaxDuration(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIClipManager
-
设置最大录制时长
- setMediaInfo(MediaInfo) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
- setMediaType(MediaType) - 类 中的方法com.aliyun.crop.struct.CropParam
-
- setMinDuration(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIClipManager
-
设置最小录制时长
- setMusic(String, long, long) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置录制背景音乐
- setMute(boolean) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
录制静音
- setOnAudioCallback(OnAudioCallBack) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
回调pcm音频数据,音频数据的格式为单通道,16位,采样率为44.1khz,
- setOnFaceDetectInfoListener(OnFaceDetectInfoListener) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
- setOnFrameCallback(OnFrameCallBack) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置采集帧回调,每采集一帧数据都通过该回调返回帧数据
- setOnTextureIdCallback(OnTextureIdCallBack) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置纹理ID回调
- setOutputHeight(int) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置输出高度
- setOutputHeight(int) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setOutputPath(String) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置视频输出路径
- setOutputPath(String) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置输出文件路径
- setOutputWidth(int) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置输出宽度
- setOutputWidth(int) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setPath(String) - 类 中的方法com.aliyun.struct.effect.EffectBase
-
- setPath(String) - 类 中的方法com.aliyun.struct.effect.EffectBean
-
设置资源文件路径
- setPath(String) - 类 中的方法com.aliyun.struct.effect.EffectPaint
-
- setPictureSize(Camera.Size) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置照片尺寸
- setQuality(VideoQuality) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置视频质量
0:极高
1:高
2:中
3:低
- setRate(float) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置录制速率
- setRecordCallback(RecordCallback) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置录制回调
- setRecordCallBack(RecordCallback) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
- setRecordRotation(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置单独的录制视频角度,如果使用本接口,请不要使用setRotation
如果需要根据传感器角度来设置录制角度,需要加上计算
if (rotation == 90 || rotation == 270) {
rotation = (rotation + 90) % 360;
if (mAliyunCamera.getCameraInfo().facing == CameraInfo.CAMERA_FACING_BACK) {
rotation += 180;
rotation %= 360;
}
} else if (rotation == 0 || rotation == 180) {
rotation = (rotation + 270) % 360;
}
- setRotation(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置传感器的角度值,如果传感器不是0,90,180,270四个值中的,需要根据范围来确定
private int getSensorRotation() {
int orientation = orientationDetector.getOrientation();
int rotation = 90;
if (orientation >= 45 && orientation < 135) {
rotation = 180;
}
if (orientation >= 135 && orientation < 225) {
rotation = 270;
}
if (orientation >= 225 && orientation < 315) {
rotation = 0;
}
if (mCameraType == CameraType.FRONT) {
if (rotation !
- setScaleMode(ScaleMode) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置裁剪模式
- setScaleMode(ScaleMode) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setStartTime(long) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置裁剪的开始时间
- setStartTime(long) - 类 中的方法com.aliyun.struct.effect.EffectBean
-
设置特效作用的开始时间点,目前只对音乐有效,单位微秒,开始时间是指音乐在视频播放时间轴上开始播放的时间点
- setStartTime(long) - 类 中的方法com.aliyun.struct.effect.EffectFilter
-
设置开始时间 单位:ms
- setUseGPU(boolean) - 类 中的方法com.aliyun.crop.struct.CropParam
-
- setUseHW(boolean) - 接口 中的方法com.aliyun.crop.supply.AliyunICrop
-
- setVideoBitrate(int) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置码率 单位:kbps
- setVideoBitrate(int) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
视频码率 单位:kbps
- setVideoCodec(VideoCodecs) - 类 中的方法com.aliyun.crop.struct.CropParam
-
设置编码器
- setVideoCodec(VideoCodecs) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setVideoCodec(VideoCodecs) - 类 中的方法com.aliyun.struct.recorder.MediaInfo
-
设置编码器
- setVideoHeight(int) - 类 中的方法com.aliyun.struct.recorder.MediaInfo
-
设置视频的高
- setVideoPath(String) - 类 中的方法com.aliyun.crop.struct.CropParam
-
已过时。
- setVideoQuality(VideoQuality) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置视频质量
- setVideoQuality(VideoQuality) - 类 中的方法com.aliyun.struct.common.AliyunVideoParam
-
- setVideoWidth(int) - 类 中的方法com.aliyun.struct.recorder.MediaInfo
-
设置视频的宽
- setZoom(float) - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
设置摄像头缩放比例
- setZoomRatio(float) - 类 中的方法com.aliyun.struct.recorder.CameraParam
-
设置摄像头缩放比例
- start - 类 中的变量com.aliyun.struct.effect.EffectPaster
-
- startCrop() - 接口 中的方法com.aliyun.crop.supply.AliyunICrop
-
开始裁剪
- startCropAudio(String, String, long, long) - 接口 中的方法com.aliyun.crop.supply.AliyunICrop
-
裁剪音频
- startPreview() - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
开启预览
注意:该方法建议在Activity.onResume()生命周期函数中调用
- startRecording() - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
开始录制
- startTime(long) - 类 中的方法com.aliyun.struct.effect.EffectFilter.Builder
-
- stopPreview() - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
停止预览
注意:该方法建议在Activity.onPause()生命周期函数中调用
- stopRecording() - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
停止录制
- switchCamera() - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
切换摄像头
- switchLight() - 接口 中的方法com.aliyun.recorder.supply.AliyunIRecorder
-
切换闪光灯