CallManager
This API is in beta and subject to change.
Interface that creates calls, conferences, and local video streams.
Methods
call
fun call(number: String
, callSettings: ): Call?
This API is in beta and subject to change.
Creates a new call instance. Call should be then started via Call.start API.
Parameters
number:
String
SIP URI, username or phone number to make call to. Actual routing is then performed by VoxEngine scenario. See /docs/getting-started/basic-concepts/routing-rules to learn more about routing
callSettings:
Call settings with additional call parameters, such as preferred video codec, custom data, extra headers etc.
Returns
type:
Call?
callConference
fun callConference(number: String
, conferenceSettings: ):
This API is in beta and subject to change.
Creates call to a dedicated conference without proxy session. For details see the video conferencing guide.
Parameters
number:
String
The number to call. For SIP compatibility reasons it should be a non-empty string even if the number itself is not used by a Voximplant cloud scenario
conferenceSettings:
Call settings with additional call parameters, such as preferred video codec, custom data, extra headers etc.
Returns
type:
setIncomingCallListener
fun setIncomingCallListener(listener: ): Unit
This API is in beta and subject to change.
Sets IncomingCallListener to handle incoming calls.
Parameters
listener:
OptionalThe listener to be notified of incoming calls. If null, previous listener is removed
Returns
type:
Unit
createLocalVideoStream
fun createLocalVideoStream(videoSource: ):
This API is in beta and subject to change.
Creates a local video stream using the provided video source
Video source can be one the following:
- CallManager - to capture the video from a device camera
- ScreenCaptureVideoSource - to capture a device screen
- CustomVideoSource - to capture a custom video frames
Parameters
videoSource:
The video source for the local video stream
Returns
type:
getInstance
@JvmStatic@JvmOverloadsfun getInstance(context: Context
, callsConfig: ):
Parameters
context:
Context
callsConfig:
Optional
Returns
type:
Props
calls
val calls: Map<String, Call>
This API is in beta and subject to change.
Returns all active calls.
Returns
type:
Map<String, Call>
conferences
val conferences: Map<String, Conference>
This API is in beta and subject to change.
Returns all active conferences.
Returns
type:
Map<String, Conference>