Class VideoCodecInfo
Represents information about a video codec, including its MIME type, SDP format parameters.
Implements
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 Video
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current Video |
Returns
Type | Description |
---|---|
bool | True if the specified object is equal to the current Video |
Overrides
Equals(VideoCodecInfo)
Determines whether the specified Video
Declaration
public bool Equals(VideoCodecInfo other)
Parameters
Type | Name | Description |
---|---|---|
Video |
other | The Video |
Returns
Type | Description |
---|---|
bool | True if the specified Video |
Examples
Debug.Log(videoStreamReceiver1.videoCodec.Equals(videoStreamReceiver2.videoCodec));
GetHashCode()
Returns a hash code for the Video
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current Video |
Overrides
Operators
operator ==(VideoCodecInfo, VideoCodecInfo)
Determines whether two specified instances of Video
Declaration
public static bool operator ==(VideoCodecInfo left, VideoCodecInfo right)
Parameters
Type | Name | Description |
---|---|---|
Video |
left | The first Video |
Video |
right | The second Video |
Returns
Type | Description |
---|---|
bool | True if the two Video |
operator !=(VideoCodecInfo, VideoCodecInfo)
Determines whether two specified instances of Video
Declaration
public static bool operator !=(VideoCodecInfo left, VideoCodecInfo right)
Parameters
Type | Name | Description |
---|---|---|
Video |
left | The first Video |
Video |
right | The second Video |
Returns
Type | Description |
---|---|
bool | True if the two Video |