Player class.
More...
#import <EZPlayer.h>
- (BOOL) audioTalkPressed: |
|
(BOOL) |
isPressed |
|
Method use in semiduplex intercom mode.Switch listen and speak mode.
- Parameters
-
isPressed | YES:speak mode;NO listen mode.default No. |
- Returns
- YES/NO
- (UIImage *) capturePicture: |
|
(NSInteger) |
quality |
|
Capture picture
- Parameters
-
quality | picture quality.range 0-100. 100 highest quality. |
- Returns
- image
close sound
- Returns
- YES/NO
+ (instancetype) createPlayerWithDeviceSerial: |
|
(NSString *) |
deviceSerial |
cameraNo: |
|
(NSInteger) |
cameraNo |
|
|
| |
Create player with device serial and channel number.
- Parameters
-
deviceSerial | device serial |
cameraNo | channel number |
- Returns
- EZPlayer object
+ (instancetype) createPlayerWithUrl: |
|
(NSString *) |
url |
|
Create player with url address.
- Parameters
-
- Returns
- EZPlayer object
+ (instancetype) createPlayerWithUserId: |
|
(NSInteger) |
userId |
cameraNo: |
|
(NSInteger) |
cameraNo |
streamType: |
|
(NSInteger) |
streamType |
|
|
| |
Create player with LAN device.
- Parameters
-
userId | user id.Login LAN device then get the id. |
cameraNo | channel number |
streamType | stream type 1:main stream 2:sub stream |
- Returns
- EZPlayer object
destory player
- Returns
- YES/NO;
Get current play time progress
- Returns
- play time
- (void) seekPlayback: |
|
(NSDate *) |
offsetTime |
|
Play according to offset time
- Parameters
-
- (void) setPlayerView: |
|
(UIView *) |
playerView |
|
Set preview view
- Parameters
-
- (void) setPlayVerifyCode: |
|
(NSString *) |
verifyCode |
|
Set verify code
- Parameters
-
- (BOOL) startLocalRecord: |
|
(void(^)(NSData *data)) |
recordDataBlock |
|
Start record stream return stream data
- Parameters
-
recordDataBlock | callback return stream data |
- Returns
- YES/NO
- (BOOL) startLocalRecordWithPath: |
|
(NSString *) |
path |
|
Start record stream with storage path
- Parameters
-
- Returns
- YES/NO
Start playback with cloud file.
- Parameters
-
cloudFile | playback file in cloud |
- Returns
- YES/NO
Start playback with file in SD card.
- Parameters
-
deviceFile | playback file in SD card. |
- Returns
- YES/NO
Start intercom
- Returns
- YES/NO
Stop record
- Returns
- YES/NO
stop intercom
- Returns
- YES/NO
The documentation for this class was generated from the following file: