Search Results for

    Show / Hide Table of Contents

    Class CodecStats

    Codec stats.

    Inheritance
    System.Object
    BaseStats
    CodecStats
    Implements
    IEquivalent<CodecStats>
    Inherited Members
    BaseStats.Id
    BaseStats.Timestamp
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class CodecStats : BaseStats, IEquivalent<CodecStats>

    Properties

    ChannelCount

    Gets the channel count.

    Declaration
    public int ChannelCount { get; }
    Property Value
    Type Description
    System.Int32

    ClockRate

    Gets the clock rate.

    Declaration
    public int ClockRate { get; }
    Property Value
    Type Description
    System.Int32

    CodecType

    Gets the codec type, "encode" or "decode", depending on whether this object represents a media format that the implementation is prepared to encode or decode.

    Declaration
    public CodecType CodecType { get; }
    Property Value
    Type Description
    CodecType

    Name

    Gets the name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Parameters

    Gets the parameters.

    Declaration
    public string Parameters { get; }
    Property Value
    Type Description
    System.String

    PayloadType

    Gets the payload type.

    Declaration
    public int PayloadType { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    DeserializeProperties(String, String)

    Deserializes the properties.

    Declaration
    protected override void DeserializeProperties(string key, string valueJson)
    Parameters
    Type Name Description
    System.String key

    The key.

    System.String valueJson

    The value in JSON format.

    Overrides
    BaseStats.DeserializeProperties(String, String)

    FromJson(String)

    Derializes codec stats from JSON.

    Declaration
    public static CodecStats FromJson(string codecJson)
    Parameters
    Type Name Description
    System.String codecJson

    The codec's stats JSON.

    Returns
    Type Description
    CodecStats

    IsEquivalent(CodecStats)

    Checks if a codec is equivalent to this one.

    Declaration
    public bool IsEquivalent(CodecStats instance)
    Parameters
    Type Name Description
    CodecStats instance

    The codec.

    Returns
    Type Description
    System.Boolean

    SerializeProperties(Dictionary<String, String>)

    Serializes the properties.

    Declaration
    protected override void SerializeProperties(Dictionary<string, string> jsonObject)
    Parameters
    Type Name Description
    Dictionary<System.String, System.String> jsonObject

    The JSON object.

    Overrides
    BaseStats.SerializeProperties(Dictionary<String, String>)

    ToJson()

    Serializes this to JSON.

    Declaration
    public string ToJson()
    Returns
    Type Description
    System.String

    ToJson(CodecStats)

    Serializes codec stats to JSON.

    Declaration
    public static string ToJson(CodecStats codec)
    Parameters
    Type Name Description
    CodecStats codec

    The codec's stats.

    Returns
    Type Description
    System.String

    Implements

    IEquivalent<T>
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0