first of all you need to have compiled linphone with video codec you want to support.
Enable video disp
linphone_core_enable_video_display([LinphoneManager getLc], YES);
And set any view as video view for linphone. I have simple extension on UIView to call only enable on any view.
Linphone documentation http://www.linphone.org/docs/liblinphone/group__IOS.html
extension UIView {
func enableLinphoneVideo() -> Bool {
return LinphoneManager.instance().setLinphoneDisplay(self)
}
func disableLinphoneVideo() -> Bool {
return LinphoneManager.instance().setLinphoneDisplay(nil)
}
}
Or you can try to setup video policy as follow:
LinphoneVideoPolicy policy;
policy.automatically_accept = YES;
policy.automatically_initiate = YES;
linphone_core_set_video_policy([LinphoneManager getLc], &policy);
If video still doesn't work plese post your logs from linphone library.