Building iOS native apps

The easiest way to include video recording in iOS native apps is using our open-source SDK. To add a video player to your app, use the following basic code: [code language="c"] - (void)viewDidAppear:(BOOL)animated { [ZiggeoiOsSDK init:@"application_token"]; ZiggeoPlayerView *playerview = [[ZiggeoPlayerView alloc] initWithFrame:CGRectMake(0, 0, 320, 200)]; [self.view addSubview:playerview]; [playerview setVideoToken:@"video_token"]; } [/code] And similarly to get a video recorder: [code language="c"] - (void)viewDidAppear:(BOOL)animated { [ZiggeoiOsSDK init:@"application_token"]; ZiggeoRecorderView *recorderview = [[ZiggeoRecorderView alloc] initWithFrame:CGRectMake(0, 0, 320, 200)]; [self.view addSubview:recordererview]; } [/code]
PREV NEXT