Class MediaCommunicationsClientExtensions
The stateful client extension.
Inherited Members
Namespace: Microsoft.Graph.Communications.Calls.Media
Assembly: Microsoft.Graph.Communications.Calls.Media.dll
Syntax
public static class MediaCommunicationsClientExtensions
Methods
CreateMediaSession(ICommunicationsClient, AudioSocketSettings, VideoSocketSettings, VideoSocketSettings, DataSocketSettings, Guid)
Creates a local media session for the provided communications client with a given socket configuration.
Declaration
public static ILocalMediaSession CreateMediaSession(this ICommunicationsClient statefulClient, AudioSocketSettings audioSocketSettings, VideoSocketSettings videoSocketSettings, VideoSocketSettings vbssSocketSettings = null, DataSocketSettings dataSocketSettings = null, Guid mediaSessionId = default(Guid))
Parameters
Type | Name | Description |
---|---|---|
ICommunicationsClient | statefulClient | The stateful client. |
AudioSocketSettings | audioSocketSettings | The audio socket settings. |
VideoSocketSettings | videoSocketSettings | The video socket settings. |
VideoSocketSettings | vbssSocketSettings | The video based screen sharing socket settings. |
DataSocketSettings | dataSocketSettings | The data socket settings. |
Guid | mediaSessionId | The id for the media session. |
Returns
Type | Description |
---|---|
ILocalMediaSession |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If the communications client has not been specified. |
ArgumentException | If the client does not have a valid identifier. |
CreateMediaSession(ICommunicationsClient, AudioSocketSettings, IEnumerable<VideoSocketSettings>, VideoSocketSettings, DataSocketSettings, Guid)
Creates a local media session for the provided communications client with a given socket configuration.
Declaration
public static ILocalMediaSession CreateMediaSession(this ICommunicationsClient client, AudioSocketSettings audioSocketSettings, IEnumerable<VideoSocketSettings> videoSocketSettings = null, VideoSocketSettings vbssSocketSettings = null, DataSocketSettings dataSocketSettings = null, Guid mediaSessionId = default(Guid))
Parameters
Type | Name | Description |
---|---|---|
ICommunicationsClient | client | The communications client. |
AudioSocketSettings | audioSocketSettings | The audio socket settings. |
IEnumerable<VideoSocketSettings> | videoSocketSettings | The video socket settings. |
VideoSocketSettings | vbssSocketSettings | The video based screen sharing socket settings. |
DataSocketSettings | dataSocketSettings | The data socket settings. |
Guid | mediaSessionId | The id for the media session. |
Returns
Type | Description |
---|---|
ILocalMediaSession |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If the communications client has not been specified. |
ArgumentException | If the client does not have a valid identifier. |