VideoCore-Inactive icon indicating copy to clipboard operation
VideoCore-Inactive copied to clipboard

Code is giving ERROR in Objective C.

Open RamNineHertz opened this issue 9 years ago • 0 comments

Hello,

Greetings of the day!!

We are the team of developers who want to implement Live Broadcast feature in one of our ongoing iOS project. Now to provide live streaming of that broadcast on Youtube/Facebook, we're using your code. when we apply this code in our project this is giving following errors:-

Undefined symbols for architecture x86_64: "OBJC_CLASS$_VCSimpleSession", referenced from: objc-class-ref in VideoUploadViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Code which we've applied:-

contentView=[[UIView alloc] init];
[self.view addSubview:contentView];
contentView.frame=self.view.frame;

// _session=[VCSimpleSession new]; _session=[[VCSimpleSession alloc] initWithVideoSize:CGSizeMake(1920, 1080) frameRate:30 bitrate:4000000 useInterfaceOrientation:NO];

// _session=[_session initWithVideoSize:CGSizeMake(1920, 1080) frameRate:30 bitrate:4000000 useInterfaceOrientation:NO]; [contentView addSubview:_session.previewView];

_session.previewView.frame = contentView.bounds;
_session.delegate = self;

Awaiting your response.

Thanks in advance. Ramprakash

RamNineHertz avatar Jan 12 '17 06:01 RamNineHertz