此类为萤石播放器类 更多...
#import <EZPlayer.h>
Instance Methods | |
(BOOL) | - destoryPlayer |
(void) | - setPlayerView: |
(BOOL) | - startRealPlay |
(BOOL) | - stopRealPlay |
(void) | - setPlayVerifyCode: |
(BOOL) | - openSound |
(BOOL) | - closeSound |
(BOOL) | - startVoiceTalk |
(BOOL) | - stopVoiceTalk |
(BOOL) | - audioTalkPressed: |
(BOOL) | - startPlaybackFromCloud: |
(BOOL) | - startPlaybackFromDevice: |
(BOOL) | - pausePlayback |
(BOOL) | - resumePlayback |
(void) | - seekPlayback: |
(NSDate *) | - getOSDTime |
(BOOL) | - stopPlayback |
(BOOL) | - startLocalRecord: |
(BOOL) | - startLocalRecordWithPath: |
(BOOL) | - stopLocalRecord |
(UIImage *) | - capturePicture: |
(int) | - getPlayPort |
(BOOL) | - setPlaybackRate: |
(BOOL) | - setCloudPlaybackRate: |
Class Methods | |
(instancetype) | + createPlayerWithDeviceSerial:cameraNo: |
(instancetype) | + createPlayerWithUrl: |
(instancetype) | + createPlayerWithUserId:cameraNo:streamType: |
属性 | |
id< EZPlayerDelegate > | delegate |
EZPlayer关联的delegate. | |
BOOL | backgroundModeByPlayer |
是否让播放器处理进入后台,YES:自动处理;NO:不处理,默认为YES | |
此类为萤石播放器类
- (BOOL) audioTalkPressed: | (BOOL) | isPressed |
半双工对讲专用接口,是否切换到听说状态
isPressed | 是否只说状态 |
- (UIImage *) capturePicture: | (NSInteger) | quality |
直播画面抓图
quality | 抓图质量(0~100),数值越大图片质量越好,图片大小越大 |
- (BOOL) closeSound |
关闭声音
+ (instancetype) createPlayerWithDeviceSerial: | (NSString *) | deviceSerial | |
cameraNo: | (NSInteger) | cameraNo | |
根据设备序列号和通道号创建EZPlayer对象
deviceSerial | 设备序列号 |
cameraNo | 通道号 |
+ (instancetype) createPlayerWithUrl: | (NSString *) | url |
根据url构造EZPlayer对象 (主要用来处理视频广场的播放)
url | 播放url |
+ (instancetype) createPlayerWithUserId: | (NSInteger) | userId | |
cameraNo: | (NSInteger) | cameraNo | |
streamType: | (NSInteger) | streamType | |
局域网设备创建播放器接口
userId | 用户id,登录局域网设备后获取 |
cameraNo | 通道号 |
streamType | 码流类型 1:主码流 2:子码流 |
- (BOOL) destoryPlayer |
销毁EZPlayer
- (NSDate *) getOSDTime |
获取当前播放时间进度
- (int) getPlayPort |
获取内部播放器句柄。建议每次使用播放器句柄时均调用此方法获取,并进行有效性判断。
- (BOOL) openSound |
开启声音
- (BOOL) pausePlayback |
暂停远程回放播放
- (BOOL) resumePlayback |
继续远程回放播放
- (void) seekPlayback: | (NSDate *) | offsetTime |
根据偏移时间播放
offsetTime | 录像偏移时间 |
- (BOOL) setCloudPlaybackRate: | (EZCloudPlaybackRate) | rate |
云存储回放专用接口,倍数回放
rate | 回放倍率,见EZCloudPlaybackRate,目前云存储支持1、4、8、16、32倍数 |
- (BOOL) setPlaybackRate: | (EZPlaybackRate) | rate |
SD卡回放专用接口,倍数回放
rate | 回放倍率,见EZPlaybackRate,目前设备存储回放支持1、2、4、8、1/2、1/4、1/8倍数 |
- (void) setPlayerView: | (UIView *) | playerView |
设置播放器的view
playerView | 播放器view |
- (void) setPlayVerifyCode: | (NSString *) | verifyCode |
设置播放器解码密码
verifyCode | 设备验证码 |
- (BOOL) startLocalRecord: | (void(^)(NSData *data)) | recordDataBlock |
开始本地直播流录像功能(用户自行处理存储过程)
recordDataBlock | 录像回调数据(可以对数据进行分析,比较人脸识别等) |
- (BOOL) startLocalRecordWithPath: | (NSString *) | path |
开始本地录像功能(SDK处理存储过程)
path | 文件存储路径 |
- (BOOL) startPlaybackFromCloud: | (EZCloudRecordFile *) | cloudFile |
开始云存储远程回放,异步接口,返回值只是表示操作成功,不代表播放成功
cloudFile | 云存储文件信息 |
- (BOOL) startPlaybackFromDevice: | (EZDeviceRecordFile *) | deviceFile |
开始远程SD卡回放,异步接口,返回值只是表示操作成功,不代表播放成功
deviceFile | SD卡文件信息 |
- (BOOL) startRealPlay |
开始播放,异步接口,返回值只是表示操作成功,不代表播放成功
- (BOOL) startVoiceTalk |
开始对讲,异步接口,返回值只是表示操作成功,不代表播放成功
- (BOOL) stopLocalRecord |
结束本地直播流录像
- (BOOL) stopPlayback |
停止远程回放
- (BOOL) stopRealPlay |
停止播放,异步接口,返回值只是表示操作成功
- (BOOL) stopVoiceTalk |
停止对讲,异步接口,返回值只是表示操作成功