9 #import <UIKit/UIKit.h>
17 typedef NS_ENUM(NSInteger, EZVideoQuality) {
18 EZVideoQualityLow = 0,
19 EZVideoQualityMiddle = 1,
20 EZVideoQualityHigh = 2
24 typedef NS_ENUM(NSInteger, EZMessageCode) {
25 PLAYER_REALPLAY_START = 1,
26 PLAYER_VIDEOLEVEL_CHANGE = 2,
27 PLAYER_STREAM_RECONNECT = 3,
28 PLAYER_VOICE_TALK_START = 4,
29 PLAYER_VOICE_TALK_END = 5,
30 PLAYER_STREAM_START = 10,
31 PLAYER_PLAYBACK_START = 11,
32 PLAYER_PLAYBACK_STOP = 12,
33 PLAYER_PLAYBACK_FINISHED = 13,
34 PLAYER_PLAYBACK_PAUSE = 14,
35 PLAYER_NET_CHANGED = 21,
36 PLAYER_NO_NETWORK = 22,
43 typedef NS_ENUM(NSInteger, EZPlaybackRate) {
44 EZ_PLAYBACK_RATE_1 = 1,
56 typedef NS_ENUM(NSInteger, EZCloudPlaybackRate) {
57 EZ_CLOUD_PLAYBACK_RATE_1 = 1,
58 EZ_CLOUD_PLAYBACK_RATE_4 = 4,
59 EZ_CLOUD_PLAYBACK_RATE_8 = 6,
60 EZ_CLOUD_PLAYBACK_RATE_16 = 8,
61 EZ_CLOUD_PLAYBACK_RATE_32 = 10,
74 - (void)player:(
EZPlayer *)player didPlayFailed:(NSError *)error;
82 - (void)player:(
EZPlayer *)player didReceivedMessage:(NSInteger)messageCode;
90 - (void)player:(
EZPlayer *)player didReceivedDataLength:(NSInteger)dataLength;
99 - (void)player:(
EZPlayer *)player didReceivedDisplayHeight:(NSInteger)height displayWidth:(NSInteger)width;
107 @property (nonatomic, weak) id<EZPlayerDelegate>
delegate;
120 + (instancetype)createPlayerWithDeviceSerial:(NSString *)deviceSerial cameraNo:(NSInteger)cameraNo;
129 + (instancetype)createPlayerWithUrl:(NSString *)url;
140 + (instancetype)createPlayerWithUserId:(NSInteger) userId cameraNo:(NSInteger) cameraNo streamType:(NSInteger) streamType;
154 - (void)setPlayerView:(UIView *)playerView;
175 - (void)setPlayVerifyCode:(NSString *)verifyCode;
212 - (BOOL)audioTalkPressed:(BOOL)isPressed;
246 - (void)seekPlayback:(NSDate *)offsetTime;
267 - (BOOL)startLocalRecord:(
void (^)(NSData *data))recordDataBlock;
276 - (BOOL)startLocalRecordWithPath:(NSString *)path;
292 - (UIImage *)capturePicture:(NSInteger)quality;
307 - (BOOL) setPlaybackRate:(EZPlaybackRate) rate;
315 - (BOOL) setCloudPlaybackRate:(EZCloudPlaybackRate) rate;
萤石播放器delegate方法
Definition: EZPlayer.h:65
id< EZPlayerDelegate > delegate
EZPlayer关联的delegate.
Definition: EZPlayer.h:107
此类为萤石播放器类
Definition: EZPlayer.h:104
BOOL backgroundModeByPlayer
是否让播放器处理进入后台,YES:自动处理;NO:不处理,默认为YES
Definition: EZPlayer.h:110
此类为设备录像文件信息(包含SD卡、后端关联设备的录像)
Definition: EZDeviceRecordFile.h:12
此类为云存储录像文件对象
Definition: EZCloudRecordFile.h:12