[peer on:SKW_PEER_EVENT_CALL callback:^(NSObject* obj) {
if (YES == [obj isKindOfClass:[SKWMediaConnection class]]) {
wSelf.mediaConnection = (SKWMediaConnection *)obj;
wSelf.callingView = [[MediaConnectionViewController alloc]initWithNibName:@"MediaConnectionViewController" bundle:nil];
wSelf.callingView.view.frame = [[UIScreen mainScreen] bounds];
wSelf.window.rootViewController = wSelf.callingView;
[wSelf.window makeKeyAndVisible];
}
}];
- (void)viewDidLoad {
[super viewDidLoad];
[self getLocalStream];
[self setMediaCallbacks:APP_DELEGATE.mediaConnection];
[APP_DELEGATE.mediaConnection answer:_msLocal];
}
but i have button answer and call 3 func on action button click, it's not working to answer.
- (IBAction)answerButtonClick:(id)sender {
[self getLocalStream];
[self setMediaCallbacks:APP_DELEGATE.mediaConnection];
[APP_DELEGATE.mediaConnection answer:_msLocal];
}
pls help me, thank U