Local Media Calls
Local media calls are those calls in which the bot manages the call's video and audio sockets. The bots send and receive raw audio and video data over the network.
Describing the Call
- Create the implementations for ISignalingHandler to handle the events on the call.
- Use the CreateCallAsync method on the
ICallService
object in theIEnterprisePlatform
instance. ThisCreateCallAsync
method takes multiple optional parameters that can be provided when creating the call object. Alternatively, the call can be initialized when an incoming call event is triggered. - When a new call has been detected by the SDK, the ICallService will trigger the CallInitializedAsync method on the ICallServiceHandler implementation of the bot. In this method, we create an instance of the ISignalingHandler and the IMediaSession interfaces to populate the CallDescription object.
- The local media call is now completely initialized and you can do further actions on the call.
Important
The CallInitializedAsync
method will be called on the ICallServiceHandler interfaces any time the bot tries to create a new call.