Search Results for

    Show / Hide Table of Contents

    Class BitrateMonitor

    A bitrate monitor.

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

    Constructors

    BitrateMonitor(ISystemClock)

    Initializes a new instance of the BitrateMonitor class.

    Declaration
    public BitrateMonitor(ISystemClock systemClock)
    Parameters
    Type Name Description
    ISystemClock systemClock

    The system clock.

    Properties

    Bitrate

    Gets the bitrate, in kbps.

    Declaration
    public double Bitrate { get; }
    Property Value
    Type Description
    System.Double

    SmoothedBitrate

    Gets the smoothed bitrate, in kbps.

    Declaration
    public double SmoothedBitrate { get; }
    Property Value
    Type Description
    System.Double

    SystemClock

    Gets the system clock.

    Declaration
    public ISystemClock SystemClock { get; }
    Property Value
    Type Description
    ISystemClock

    Methods

    Reset()

    Resets this instance.

    Declaration
    public void Reset()

    TestBitrate(Int64)

    Returns the new bitrate if a new sample is added.

    Declaration
    public double TestBitrate(long bitCount)
    Parameters
    Type Name Description
    System.Int64 bitCount

    The new bit count.

    Returns
    Type Description
    System.Double

    TestSmoothedBitrate(Int64)

    Returns the new bitrate if a new sample is added.

    Declaration
    public double TestSmoothedBitrate(long bitCount)
    Parameters
    Type Name Description
    System.Int64 bitCount

    The new bit count.

    Returns
    Type Description
    System.Double

    Update(Int64)

    Adds a sample. This sample should be the total bits sent (or received) over the lifetime of the owning class. A sample should be added every time a packet is sent (or received).

    Declaration
    public void Update(long bitCount)
    Parameters
    Type Name Description
    System.Int64 bitCount

    The new bit count.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0