An IPCam Viewer based on UIImageView subclass.
With this small class set (two classes) you can build your custom ip cam surveillance app in a very EZWay!
To stream the remote images, you just need to configure some parameters of your IpCam...see instruction below.
![ScreenShot](https://raw.github.com/alchimya/iOS-IPCamViewer/master/screenshots/screenshot_01.jpg)
This package consists of two classes:
- L3SDKIPCam: it defines the ip camera parameters
- L3SDKIPCamViewer: it allows to stream remote images taken from an IpCamera
L3SDKIPCam
name | type | description |
---|---|---|
url | NSString | it allows to set the ip camera url ( eg:10.10.10.10 or www.domain.com/ipcams) |
port | int | it allows to set ip camera port (default 80) |
username | NSString | it allows to set authentication username |
password | NSString | it allows to set authentication password |
videoFolder | NSString | to configure this property you have to refer to the ip camera user manual (eg:cgi/mjpg) |
videoName | NSString | to configure this property you have to refer to the ip camera user manual (eg:mjpg.cgi) |
videoParams | NSString | to configure this property you have to refer to the ip camera user manual (eg:camera=&resolution=680x480) |
L3SDKIPCamViewer
name | type | description |
---|---|---|
ipCam | L3SDKIPCam | it allows to configure ip cam parameters (see L3SDKIPCam.h) |
allowSelfSignedCertificates | BOOL | it sets credetials behavior |
allowClearTextCredentials | BOOL | it sets credetials behavior |
delegate | id | class delegate (see L3SDKIPCamViewerDelegate) |
@protocol L3SDKIPCamViewerDelegate <NSObject>
//it will be raised when occur a connection error
- (void)L3SDKIPCamViewer_ConnectionError:(NSError *)error;
//it will be raised if ipcma requires authentication
- (void)L3SDKIPCamViewer_AuthenticationRequired:(L3SDKIPCam*)ipCam sender:(L3SDKIPCamViewer*)sender;
@end
//start streaming self.ipCamViewer1.delegate=self; self.ipCamViewer1.ipCam=ipCam1; [self.ipCamViewer1 play];
#Video stream example
![ScreenShot](https://raw.github.com/alchimya/iOS-IPCamViewer/master/screenshots/iOS-IPCamViewer.gif)