webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | Class Methods | Properties | List of all members
ARDBitrateTracker Class Reference

#import <ARDBitrateTracker.h>

Inheritance diagram for ARDBitrateTracker:
NSObject NSObject

Instance Methods

(void- updateBitrateWithCurrentByteCount:
 
(void- updateBitrateWithCurrentByteCount:
 

Class Methods

(NSString *) + bitrateStringForBitrate:
 
(NSString *) + bitrateStringForBitrate:
 

Properties

double bitrate
 
NSStringbitrateString
 

Detailed Description

Class used to estimate bitrate based on byte count. It is expected that byte count is monotonocially increasing. This class tracks the times that byte count is updated, and measures the bitrate based on the byte difference over the interval between updates.

Method Documentation

◆ bitrateStringForBitrate:() [1/2]

+ (NSString *) bitrateStringForBitrate: (double)  bitrate

Converts the bitrate to a readable format in bps, Kbps or Mbps.

◆ bitrateStringForBitrate:() [2/2]

+ (NSString *) bitrateStringForBitrate: (double)  bitrate

Converts the bitrate to a readable format in bps, Kbps or Mbps.

◆ updateBitrateWithCurrentByteCount:() [1/2]

- (void) updateBitrateWithCurrentByteCount: (NSInteger)  byteCount

Updates the tracked bitrate with the new byte count.

◆ updateBitrateWithCurrentByteCount:() [2/2]

- (void) updateBitrateWithCurrentByteCount: (NSInteger)  byteCount

Updates the tracked bitrate with the new byte count.

Property Documentation

◆ bitrate

- (double) bitrate
readnonatomicassign

The bitrate in bits per second.

◆ bitrateString

- (NSString *) bitrateString
readnonatomicassign

The bitrate as a formatted string in bps, Kbps or Mbps.


The documentation for this class was generated from the following files: