Application Hosted Media Calls
Application Hosted 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.
Building a CommunicationsClient with Media Platform Settings
- Create the an instance of the ICommunicationsClientBuilder.
- Create an instance of MediaPlatformSettings and use MediaCommunicationsClientBuilderExtensions.SetMediaPlatformSettings method to pass the MediaPlatformSettings to build the ICommunicationsClient
- Once the builder builds the ICommunicationsClient, a media session can be created using either MediaCommunicationsClientExtension.CreateMediaSession or MediaCommunicationsClientExtension.CreateMediaSession depending on how many video sockets are required.
- When creating an object of the Call resource, MediaConfig needs to be set to AppHostedMediaConfig.
Important
When creating a new call that uses application hosted media, an instance of IMediaSession needs to be passed into CallCollectionExtensions.AddAsync