Class MediaControlFrame
A media control frame.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MediaControlFrame : Dynamic
Constructors
MediaControlFrame()
Initializes a new instance of the MediaControlFrame class.
Declaration
public MediaControlFrame()
MediaControlFrame(DataBuffer)
Initializes a new instance of the MediaControlFrame class.
Declaration
public MediaControlFrame(DataBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
Properties
Byte1Last5Bits
Gets or sets the last 5 bits of the first byte.
Declaration
public int Byte1Last5Bits { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DataBuffer
Gets or sets the buffer.
Declaration
public DataBuffer DataBuffer { get; protected set; }
Property Value
Type | Description |
---|---|
DataBuffer |
FixedHeaderLength
Gets the length of the fixed header.
Declaration
public static int FixedHeaderLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Payload
Gets or sets the payload.
Declaration
public DataBuffer Payload { get; }
Property Value
Type | Description |
---|---|
DataBuffer |
PayloadLengthWithPadding
Gets or sets the length of the payload, in bytes, with padding.
Declaration
public int PayloadLengthWithPadding { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PayloadType
Gets or sets the payload type.
Declaration
public int PayloadType { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StreamId
Gets the stream ID.
Declaration
public string StreamId { get; }
Property Value
Type | Description |
---|---|
System.String |
Version
Gets or sets the version.
Declaration
public int Version { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
AddControlFrame(MediaControlFrame[], MediaControlFrame, Int32)
Adds a control frame to an array.
Declaration
public static MediaControlFrame[] AddControlFrame(MediaControlFrame[] controlFrames, MediaControlFrame addControlFrame, int index)
Parameters
Type | Name | Description |
---|---|---|
MediaControlFrame[] | controlFrames | The control frames. |
MediaControlFrame | addControlFrame | The control frame to add. |
System.Int32 | index | The insert index. |
Returns
Type | Description |
---|---|
MediaControlFrame[] | A new control frame array. |
AddControlFrames(MediaControlFrame[], MediaControlFrame[], Int32)
Adds control frames to an array.
Declaration
public static MediaControlFrame[] AddControlFrames(MediaControlFrame[] controlFrames, MediaControlFrame[] addControlFrames, int index)
Parameters
Type | Name | Description |
---|---|---|
MediaControlFrame[] | controlFrames | The control frames. |
MediaControlFrame[] | addControlFrames | The control frames to add. |
System.Int32 | index | The insert index. |
Returns
Type | Description |
---|---|
MediaControlFrame[] | A new control frame array. |
Parse(DataBuffer)
Parses a data buffer into an array of control frames.
Declaration
public static MediaControlFrame[] Parse(DataBuffer dataBuffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | dataBuffer | The data buffer. |
Returns
Type | Description |
---|---|
MediaControlFrame[] |
RemoveControlFrame(MediaControlFrame[], Int32)
Removes a control frame from an array.
Declaration
public static MediaControlFrame[] RemoveControlFrame(MediaControlFrame[] controlFrames, int index)
Parameters
Type | Name | Description |
---|---|---|
MediaControlFrame[] | controlFrames | The control frames. |
System.Int32 | index | The delete index. |
Returns
Type | Description |
---|---|
MediaControlFrame[] | A new control frame array. |