docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VideoCodecInfo

    Represents information about a video codec, including its MIME type, SDP format parameters.

    Inheritance
    object
    VideoCodecInfo
    AV1CodecInfo
    H264CodecInfo
    VP9CodecInfo
    Implements
    IEquatable<VideoCodecInfo>
    Namespace: Unity.RenderStreaming
    Assembly: Unity.RenderStreaming.dll
    Syntax
    [Serializable]
    public class VideoCodecInfo : IEquatable<VideoCodecInfo>

    Properties

    codecImplementation

    Gets the codec implementation name.

    Declaration
    public string codecImplementation { get; }
    Property Value
    Type Description
    string

    mimeType

    Gets the MIME type of the video codec.

    Declaration
    public string mimeType { get; }
    Property Value
    Type Description
    string

    name

    Gets the name of the video codec.

    Declaration
    public string name { get; }
    Property Value
    Type Description
    string

    parameters

    Declaration
    protected Dictionary<string, string> parameters { get; }
    Property Value
    Type Description
    Dictionary<string, string>

    sdpFmtpLine

    Gets the SDP format parameters line.

    Declaration
    public string sdpFmtpLine { get; }
    Property Value
    Type Description
    string

    Methods

    Equals(object)

    Determines whether the specified object is equal to the current VideoCodecInfo.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current VideoCodecInfo.

    Returns
    Type Description
    bool

    True if the specified object is equal to the current VideoCodecInfo; otherwise, false.

    Overrides
    object.Equals(object)

    Equals(VideoCodecInfo)

    Determines whether the specified VideoCodecInfo is equal to the current VideoCodecInfo.

    Declaration
    public bool Equals(VideoCodecInfo other)
    Parameters
    Type Name Description
    VideoCodecInfo other

    The VideoCodecInfo to compare with the current VideoCodecInfo.

    Returns
    Type Description
    bool

    True if the specified VideoCodecInfo is equal to the current VideoCodecInfo; otherwise, false.

    Examples
    Debug.Log(videoStreamReceiver1.videoCodec.Equals(videoStreamReceiver2.videoCodec));

    GetHashCode()

    Returns a hash code for the VideoCodecInfo. The hash code is based on the MIME type and SDP format parameters line properties.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current VideoCodecInfo.

    Overrides
    object.GetHashCode()

    Operators

    operator ==(VideoCodecInfo, VideoCodecInfo)

    Determines whether two specified instances of VideoCodecInfo are equal.

    Declaration
    public static bool operator ==(VideoCodecInfo left, VideoCodecInfo right)
    Parameters
    Type Name Description
    VideoCodecInfo left

    The first VideoCodecInfo to compare.

    VideoCodecInfo right

    The second VideoCodecInfo to compare.

    Returns
    Type Description
    bool

    True if the two VideoCodecInfo instances are equal; otherwise, false.

    operator !=(VideoCodecInfo, VideoCodecInfo)

    Determines whether two specified instances of VideoCodecInfo are not equal.

    Declaration
    public static bool operator !=(VideoCodecInfo left, VideoCodecInfo right)
    Parameters
    Type Name Description
    VideoCodecInfo left

    The first VideoCodecInfo to compare.

    VideoCodecInfo right

    The second VideoCodecInfo to compare.

    Returns
    Type Description
    bool

    True if the two VideoCodecInfo instances are not equal; otherwise, false.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)