webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#import <ARDBitrateTracker.h>
Instance Methods | |
(void) | - updateBitrateWithCurrentByteCount: |
(void) | - updateBitrateWithCurrentByteCount: |
Class Methods | |
(NSString *) | + bitrateStringForBitrate: |
(NSString *) | + bitrateStringForBitrate: |
Properties | |
double | bitrate |
NSString * | bitrateString |
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.
+ (NSString *) bitrateStringForBitrate: | (double) | bitrate |
Converts the bitrate to a readable format in bps, Kbps or Mbps.
+ (NSString *) bitrateStringForBitrate: | (double) | bitrate |
Converts the bitrate to a readable format in bps, Kbps or Mbps.
- (void) updateBitrateWithCurrentByteCount: | (NSInteger) | byteCount |
Updates the tracked bitrate with the new byte count.
- (void) updateBitrateWithCurrentByteCount: | (NSInteger) | byteCount |
Updates the tracked bitrate with the new byte count.
|
readnonatomicassign |
The bitrate in bits per second.
|
readnonatomicassign |
The bitrate as a formatted string in bps, Kbps or Mbps.