jgh- / VideoCore-Inactive

*No longer in development* Please see https://github.com/unpause-live/SwiftVideo
MIT License
1.47k stars 538 forks source link

Code is giving ERROR in Objective C. #361

Open RamNineHertz opened 7 years ago

RamNineHertz commented 7 years ago

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: "_OBJCCLASS$_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