Search Results for

    Show / Hide Table of Contents

    Class BitrateQueue

    A bitrate queue.

    Inheritance
    System.Object
    BitrateQueue
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class BitrateQueue : object

    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

    true if the buffer was queued; otherwise false.

    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>
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0