-
Notifications
You must be signed in to change notification settings - Fork 0
Channelize Voice And Video SDK Documentation
rohitphogat19 edited this page Apr 26, 2019
·
9 revisions
If you are Using both API and UI SDK, then it is Already integrated in UI SDK. You can enable or Disable this feature in UI SDK customization by using below code
CHCustomOptions.enableVoiceVideo = true // TRUE => Enabled , FALSE => Disabled
If you are not using our UI SDK and Want to use Voice and Video SDK, then follow below procedure
You have to create a CHActiveCallObject
by calling below function
/*
Parameters Required
1. user : Type => CHUser, Required => Yes, Description => User with whom you are making Call
2. type : Type => CallScreen, Required => Yes, Description => Type of call, Possible Values => .voice or .video
*/
let callObject = ChVoiceVideo.getCallObject(user: CHUSER_OBJECT, type: TYPE_OF_CALL)
Launch Call SDK by using below code
/*
Parameters Required
1. navigationContoller : Type => UINavigationController, Required => Yes
2. activeCall : Type => CHActiveCall, Required => Yes, Description => call Object Created above
*/
ChVoiceVideo.launchCallViewController(navigationController: UINAVIGATIONCONTROLLER,activeCall:CALL_OBJECT)