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,
49 - (void)player:(
EZPlayer *)player didPlayFailed:(NSError *)error;
57 - (void)player:(
EZPlayer *)player didReceivedMessage:(NSInteger)messageCode;
65 - (void)player:(
EZPlayer *)player didReceivedDataLength:(NSInteger)dataLength;
74 - (void)player:(
EZPlayer *)player didReceivedDisplayHeight:(NSInteger)height displayWidth:(NSInteger)width;
82 @property (nonatomic, weak) id<EZPlayerDelegate>
delegate;
95 + (instancetype)createPlayerWithDeviceSerial:(NSString *)deviceSerial cameraNo:(NSInteger)cameraNo;
104 + (instancetype)createPlayerWithUrl:(NSString *)url;
115 + (instancetype)createPlayerWithUserId:(NSInteger) userId cameraNo:(NSInteger) cameraNo streamType:(NSInteger) streamType;
129 - (void)setPlayerView:(UIView *)playerView;
150 - (void)setPlayVerifyCode:(NSString *)verifyCode;
187 - (BOOL)audioTalkPressed:(BOOL)isPressed;
221 - (void)seekPlayback:(NSDate *)offsetTime;
242 - (BOOL)startLocalRecord:(
void (^)(NSData *data))recordDataBlock;
251 - (BOOL)startLocalRecordWithPath:(NSString *)path;
267 - (UIImage *)capturePicture:(NSInteger)quality;
Player delegate.
Definition: EZPlayer.h:40
id< EZPlayerDelegate > delegate
delegate
Definition: EZPlayer.h:82
Player class.
Definition: EZPlayer.h:79
BOOL backgroundModeByPlayer
Auto process when app enter background.YES:auto process;NO:no process,default YES.
Definition: EZPlayer.h:85
Device video information (including the video of SD card, NVR, and DVR)
Definition: EZDeviceRecordFile.h:12
Cloud storage video.
Definition: EZCloudRecordFile.h:12