视频录制关键类型定义
| class com::tencent::ugc::TXRecordCommon::TXRecordResult |
| interface com::tencent::ugc::TXRecordCommon::ITXVideoRecordListener |
Public 成员函数 | |
| void | onRecordEvent (final int event, final Bundle param) |
| void | onRecordProgress (long milliSecond) |
| void | onRecordComplete (TXRecordResult result) |
| void onRecordComplete | ( | TXRecordResult | result | ) |
短视频录制完成
| void onRecordEvent | ( | final int | event, |
| final Bundle | param | ||
| ) |
短视频录制事件通知
| event | 事件id.id类型 |
| param | 事件相关的参数.(key,value)格式,其中key |
| void onRecordProgress | ( | long | milliSecond | ) |
短视频录制进度
| interface com::tencent::ugc::TXRecordCommon::ITXSnapshotListener |
| class com::tencent::ugc::TXRecordCommon::TXUGCSimpleConfig |
| class com::tencent::ugc::TXRecordCommon::TXUGCCustomConfig |
成员变量 | |
| int | videoResolution = VIDEO_RESOLUTION_540_960 |
| int | videoFps = 20 |
| int | videoBitrate = 1800 |
| int | videoGop = 3 |
| Bitmap | watermark = null |
| int | watermarkX = 0 |
| int | watermarkY = 0 |
| boolean | isFront = true |
| boolean | touchFocus = false |
| int | minDuration = 5000 |
| int | maxDuration = 60000 |
| int | audioSampleRate = AUDIO_SAMPLERATE_48000 |
| boolean | needEdit = true |
| int | profile = TXCVideoEncoderTypeDef.Profile_None |
| int audioSampleRate = AUDIO_SAMPLERATE_48000 |
| boolean isFront = true |
| int maxDuration = 60000 |
| int minDuration = 5000 |
| boolean needEdit = true |
| int profile = TXCVideoEncoderTypeDef.Profile_None |
| boolean touchFocus = false |
| int videoBitrate = 1800 |
| int videoFps = 20 |
| int videoGop = 3 |
| int videoResolution = VIDEO_RESOLUTION_540_960 |
| Bitmap watermark = null |
| int watermarkX = 0 |
| int watermarkY = 0 |
| interface com::tencent::ugc::TXRecordCommon::ITXBGMNotify |
Public 成员函数 | |
| void | onBGMStart () |
| void | onBGMProgress (long progress, long duration) |
| void | onBGMComplete (int err) |
| void onBGMComplete | ( | int | err | ) |
音乐播放结束的回调通知
| err | 0:正常结束 -1:出错结束 |
| void onBGMProgress | ( | long | progress, |
| long | duration | ||
| ) |
音乐播放进度的回调通知
| progress | 当前BGM已播放时间(ms) |
| duration | 当前BGM总时间(ms) |
| void onBGMStart | ( | ) |
音乐播放开始的回调通知
| class com::tencent::ugc::TXRecordCommon |
|
static |
|
static |
|
static |
|
static |
|
static |
音频采样率
|
static |
|
static |
|
static |
录制事件参数
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
录制结果回调错误码定义
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
录制速度
|
static |
PlayRecord 录制类型定义
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
开始录制的返回错误码
|
static |
|
static |
|
static |
|
static |
|
static |
显示比例
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
图像平铺模式 VIDEO_RENDER_MODE_FULL_FILL_SCREEN :将图像等比例铺满整个屏幕,多余部分裁剪掉,此模式下画面不留黑边 VIDEO_RENDER_MODE_ADJUST_RESOLUTION :将图像等比例缩放,缩放后的宽和高都不会超过显示区域,居中显示
|
static |
|
static |
Record 录制分辨率类型定义
|
static |
|
static |
|
static |
|
static |
混响
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
变声
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |