-1

I am configure to linPhone Video Call using Swift 3 language but i don't have any idea how to configure to linPhone Video Call method. In my app Audio call Configure successfully.

please, Give me any idea how to configure to Video call in linphone method swift language.

Vivek Shukla
  • 7
  • 1
  • 3

1 Answers1

2

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.

Jakub Průša
  • 2,255
  • 1
  • 14
  • 19