Show / Hide Table of Contents

    Class MediaCallExtensions

    Stateful call media extensions

    Inheritance
    Object
    MediaCallExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph.Communications.Calls.Media
    Assembly: Microsoft.Graph.Communications.Calls.Media.dll
    Syntax
    public static class MediaCallExtensions

    Methods

    CreateMediaSession(ICall, AudioSocketSettings, VideoSocketSettings, VideoSocketSettings, DataSocketSettings, Guid)

    Creates a local media session for the provided call with a given socket configuration.

    Declaration
    public static ILocalMediaSession CreateMediaSession(this ICall call, AudioSocketSettings audioSocketSettings, VideoSocketSettings videoSocketSettings, VideoSocketSettings vbssSocketSettings = null, DataSocketSettings dataSocketSettings = null, Guid mediaSessionId = default(Guid))
    Parameters
    Type Name Description
    ICall call

    The call.

    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

    A ILocalMediaSession.

    Exceptions
    Type Condition
    ArgumentNullException

    If the call has not been specified.

    ArgumentException

    If the call does not have a valid identifier.

    CreateMediaSession(ICall, AudioSocketSettings, IEnumerable<VideoSocketSettings>, VideoSocketSettings, DataSocketSettings, Guid)

    Creates a local media session for the provided call with a given socket configuration.

    Declaration
    public static ILocalMediaSession CreateMediaSession(this ICall call, AudioSocketSettings audioSocketSettings, IEnumerable<VideoSocketSettings> videoSocketSettings = null, VideoSocketSettings vbssSocketSettings = null, DataSocketSettings dataSocketSettings = null, Guid mediaSessionId = default(Guid))
    Parameters
    Type Name Description
    ICall call

    The call.

    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

    A ILocalMediaSession.

    Exceptions
    Type Condition
    ArgumentNullException

    If the call has not been specified.

    ArgumentException

    If the call does not have a valid identifier.

    GetLocalMediaSession(ICall)

    Gets the local media session for this call object.

    Declaration
    public static ILocalMediaSession GetLocalMediaSession(this ICall call)
    Parameters
    Type Name Description
    ICall call

    The call.

    Returns
    Type Description
    ILocalMediaSession

    Local media session object

    Exceptions
    Type Condition
    InvalidCastException

    This call does not have a valid ILocalMediaSession object.

    Back to top Copyright (c) Microsoft Corporation. All rights reserved.