Tutorials

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:

- (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"];
}

And similarly to get a video recorder:

- (void)viewDidAppear:(BOOL)animated
{
	[ZiggeoiOsSDK init:@"application_token"];
	ZiggeoRecorderView *recorderview = [[ZiggeoRecorderView alloc] initWithFrame:CGRectMake(0, 0, 320, 200)];
	[self.view addSubview:recordererview];
}