TXLivePushConfig.h
3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#import <Foundation/NSObject.h>
#import <UIKit/UIKit.h>
#import "TXLiveSDKTypeDef.h"
#define CUSTOM_MODE_AUDIO_CAPTURE 0X001 //厂商自定义音频采集
#define CUSTOM_MODE_VIDEO_CAPTURE 0X002 //厂商自定义视频采集
#define CUSTOM_MODE_AUDIO_PREPROCESS 0X004 //厂商自定义音频预处理逻辑
#define CUSTOM_MODE_VIDEO_PREPROCESS 0X008 //厂商自定义视频预处理逻辑
@interface TXLivePushConfig : NSObject
// 厂商自定义模式
@property (nonatomic, assign) int customModeType;
// 美颜强度
@property (nonatomic, assign) int beautyFilterDepth;
// 美白强度:最大值3,大于3将自动设置成3
@property (nonatomic, assign) int whiteningFilterDepth;
// 开启硬件加速
@property (nonatomic, assign) BOOL enableHWAcceleration;
// home键所在方向
@property (nonatomic, assign) int homeOrientation;
// 视频采集帧率
@property (nonatomic, assign) int videoFPS;
// 视频分辨率
@property (nonatomic, assign) int videoResolution;
// 视频固定码率,
@property (nonatomic, assign) int videoBitratePIN;
// 视频编码GOP,单位second 秒
@property (nonatomic, assign) int videoEncodeGop;
// 音频采样率
@property (nonatomic, assign) int audioSampleRate;
// 音频声道数
@property (nonatomic, assign) int audioChannels;
// 码率自适应: SDK会根据网络情况自动调节视频码率, 调节范围在 (videoBitrateMin - videoBitrateMax)
@property (nonatomic, assign) BOOL enableAutoBitrate;
// 视频最大码率,仅当enableAutoBitrate = YES时有效
@property (nonatomic, assign) int videoBitrateMax;
// 视频最小码率,仅当enableAutoBitrate = YES时有效
@property (nonatomic, assign) int videoBitrateMin;
// 噪音抑制
@property (nonatomic, assign) BOOL enableNAS;
// 是否前置camera
@property (nonatomic, assign) BOOL frontCamera;
//推流器连接重试次数 : 最小值为 1, 最大值为 10, 默认值为 3
@property (nonatomic, assign) int connectRetryCount;
//推流器连接重试间隔 : 单位秒,最小值为 3, 最大值为 30, 默认值为 3
@property (nonatomic, assign) int connectRetryInterval;
//设置水印图片. 设为nil等同于关闭水印
@property (nonatomic, retain) UIImage *watermark;
//设置水印图片位置
@property (nonatomic, assign) CGPoint watermarkPos;
/**
* 视频预处理Hook
*/
@property (nonatomic, assign) PVideoProcessHookFunc pVideoFuncPtr;
/**
* 音频预处理Hook
*/
@property (nonatomic, assign) PAudioProcessHookFunc pAudioFuncPtr;
@end