Search Results for

    Show / Hide Table of Contents

    Class VideoEncodingConfig

    Video encoding configuration.

    Inheritance
    System.Object
    EncodingConfig
    VideoEncodingConfig
    Inherited Members
    EncodingConfig.RtpStreamId
    EncodingConfig.SynchronizationSource
    EncodingConfig.Deactivated
    EncodingConfig.Bitrate
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class VideoEncodingConfig : EncodingConfig

    Constructors

    VideoEncodingConfig()

    Initializes a new instance of the VideoEncodingConfig class.

    Declaration
    public VideoEncodingConfig()

    VideoEncodingConfig(EncodingInfo)

    Initializes a new instance of the VideoEncodingConfig class.

    Declaration
    public VideoEncodingConfig(EncodingInfo encoding)
    Parameters
    Type Name Description
    EncodingInfo encoding

    The encoding.

    Properties

    FrameRate

    Gets or sets the frame-rate, in fps.

    Declaration
    public double FrameRate { get; set; }
    Property Value
    Type Description
    System.Double

    Scale

    Gets or sets the target scale.

    Declaration
    public double Scale { get; set; }
    Property Value
    Type Description
    System.Double

    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
    EncodingConfig.DeserializeProperties(String, String)

    FromJson(String)

    Deserializes an instance from JSON.

    Declaration
    public static VideoEncodingConfig FromJson(string encodingConfigJson)
    Parameters
    Type Name Description
    System.String encodingConfigJson

    The serialized JSON.

    Returns
    Type Description
    VideoEncodingConfig

    The deserialized instance.

    FromJsonArray(String)

    Deserializes an array from JSON.

    Declaration
    public static VideoEncodingConfig[] FromJsonArray(string encodingConfigsJson)
    Parameters
    Type Name Description
    System.String encodingConfigsJson

    The serialized JSON.

    Returns
    Type Description
    VideoEncodingConfig[]

    The deserialized array.

    SerializeProperties(Dictionary<String, String>)

    Serializes the properties.

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

    The JSON object.

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

    ToJson()

    Serializes this instance to JSON.

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

    ToJson(VideoEncodingConfig)

    Serializes an instance to JSON.

    Declaration
    public static string ToJson(VideoEncodingConfig encodingConfig)
    Parameters
    Type Name Description
    VideoEncodingConfig encodingConfig

    The instance to serialize.

    Returns
    Type Description
    System.String

    The serialized JSON.

    ToJsonArray(VideoEncodingConfig[])

    Serializes an array to JSON.

    Declaration
    public static string ToJsonArray(VideoEncodingConfig[] encodingConfigs)
    Parameters
    Type Name Description
    VideoEncodingConfig[] encodingConfigs

    The array to serialize.

    Returns
    Type Description
    System.String

    The serialized JSON.

    ToString()

    Returns a string that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string that represents this instance.

    Overrides
    System.Object.ToString()
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0