视频编辑关键类型定义
class TXVideoInfo |
属性 | |
UIImage * | coverImage |
CGFloat | duration |
unsigned long long | fileSize |
float | fps |
int | bitrate |
int | audioSampleRate |
int | width |
int | height |
int | angle |
|
readwritenonatomicassign |
视频旋转角度
|
readwritenonatomicassign |
音频采样率
|
readwritenonatomicassign |
视频码率 (kbps)
|
readwritenonatomicstrong |
视频首帧图片
|
readwritenonatomicassign |
视频时长(s)
|
readwritenonatomicassign |
视频大小(byte)
|
readwritenonatomicassign |
视频fps
|
readwritenonatomicassign |
视频高度
|
readwritenonatomicassign |
视频宽度
class TXPreviewParam |
属性 | |
UIView * | videoView |
TXPreviewRenderMode | renderMode |
|
readwritenonatomicassign |
填充模式
|
readwritenonatomicstrong |
视频预览View
class TXSubtitle |
属性 | |
UIImage * | titleImage |
CGRect | frame |
CGFloat | startTime |
CGFloat | endTime |
|
readwritenonatomicassign |
字幕结束时间(s)
|
readwritenonatomicassign |
字幕的frame(注意这里的frame坐标是相对于渲染view的坐标)
|
readwritenonatomicassign |
字幕起始时间(s)
|
readwritenonatomicstrong |
字幕图片 (这里需要客户把承载文字的控件转成image图片)
class TXPaster |
属性 | |
UIImage * | pasterImage |
CGRect | frame |
CGFloat | startTime |
CGFloat | endTime |
|
readwritenonatomicassign |
贴纸结束时间(s)
|
readwritenonatomicassign |
贴纸frame(注意这里的frame坐标是相对于渲染view的坐标)
|
readwritenonatomicstrong |
贴纸图片
|
readwritenonatomicassign |
贴纸起始时间(s)
class TXAnimatedPaster |
属性 | |
NSString * | animatedPasterpath |
CGRect | frame |
CGFloat | rotateAngle |
CGFloat | startTime |
CGFloat | endTime |
|
readwritenonatomicstrong |
动图文件路径
|
readwritenonatomicassign |
动图结束时间(s)
|
readwritenonatomicassign |
动图的frame(注意这里的frame坐标是相对于渲染view的坐标)
|
readwritenonatomicassign |
动图旋转角度 (0 ~ 360)
|
readwritenonatomicassign |
动图起始时间(s)
class TXRepeat |
class TXSpeed |
属性 | |
CGFloat | startTime |
CGFloat | endTime |
TXSpeedLevel | speedLevel |
|
readwritenonatomicassign |
加速播放结束时间(s)
|
readwritenonatomicassign |
加速级别
|
readwritenonatomicassign |
加速播放起始时间(s)
class TXGenerateResult |
属性 | |
TXGenerateResultCode | retCode |
NSString * | descMsg |
|
readwritenonatomicstrong |
错误描述信息
|
readwritenonatomicassign |
错误码
class TXJoinerResult |
属性 | |
TXJoinerResultCode | retCode |
NSString * | descMsg |
|
protected |
|
readwritenonatomicstrong |
错误描述信息
|
readwritenonatomicassign |
错误码
enum TXEffectType : NSInteger |
视频特效类型
enum TXGenerateResultCode : NSInteger |
enum TXJoinerResultCode : NSInteger |
enum TXPreviewRenderMode : NSInteger |
enum TXSpeedLevel : NSInteger |
enum TXTransitionType : NSInteger |