Class BitrateQueue
A bitrate queue.
Inheritance
System.Object
BitrateQueue
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class BitrateQueue
Constructors
BitrateQueue()
Initializes a new instance of the BitrateQueue class.
Declaration
public BitrateQueue()
BitrateQueue(ISystemClock)
Initializes a new instance of the BitrateQueue class.
Declaration
public BitrateQueue(ISystemClock systemClock)
Parameters
Type | Name | Description |
---|---|---|
ISystemClock | systemClock | The system clock. |
Properties
Bitrate
Gets or sets the bitrate, in kbps, allowed through the queue. A value of -1 indicates no limit.
Declaration
public long Bitrate { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
MaxBytes
Gets or sets the maximum number of bytes allowed in the queue before discarding. A value of -1 indicates no limit.
Declaration
public long MaxBytes { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
Destroy()
Destroys this queue.
Declaration
public void Destroy()
Enqueue(DataBuffer, String, Int32, Object)
Pushes a buffer to the queue.
Declaration
public bool Enqueue(DataBuffer buffer, string ipAddress, int port, object state)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.String | ipAddress | The IP address. |
System.Int32 | port | The port. |
System.Object | state | The state. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Events
OnDequeue
Raised when a buffer is ready to be processed.
Declaration
public event Action4<DataBuffer, string, int, object> OnDequeue
Event Type
Type | Description |
---|---|
Action4<DataBuffer, System.String, System.Int32, System.Object> |