Remote Media Calls
Remote media calls are those calls in which the bot offloads the media to the Microsoft infrastructure. This makes the bot much more lightweight, but it cannot access the raw audio/video streams.
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 list of supported Modalities to populate the CallDescription object.
- The remote 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.