Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Code is giving ERROR in Objective C. #361

Open
RamNineHertz opened this issue Jan 12, 2017 · 0 comments
Open

Code is giving ERROR in Objective C. #361

RamNineHertz opened this issue Jan 12, 2017 · 0 comments

Comments

@RamNineHertz
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant