Moving src/webrtc into src/.
In order to eliminate the WebRTC Subtree mirror in Chromium, WebRTC is moving the content of the src/webrtc directory up to the src/ directory. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true TBR=tommi@webrtc.org Bug: chromium:611808 Change-Id: Iac59c5b51b950f174119565bac87955a7994bc38 Reviewed-on: https://webrtc-review.googlesource.com/1560 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Henrik Kjellander <kjellander@webrtc.org> Cr-Commit-Position: refs/heads/master@{#19845}
This commit is contained in:
committed by
Commit Bot
parent
6674846b4a
commit
bb547203bf
30
examples/objc/AppRTCMobile/ARDBitrateTracker.h
Normal file
30
examples/objc/AppRTCMobile/ARDBitrateTracker.h
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
* tree. An additional intellectual property rights grant can be found
|
||||
* in the file PATENTS. All contributing project authors may
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/** 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.
|
||||
*/
|
||||
@interface ARDBitrateTracker : NSObject
|
||||
|
||||
/** The bitrate in bits per second. */
|
||||
@property(nonatomic, readonly) double bitrate;
|
||||
/** The bitrate as a formatted string in bps, Kbps or Mbps. */
|
||||
@property(nonatomic, readonly) NSString *bitrateString;
|
||||
|
||||
/** Converts the bitrate to a readable format in bps, Kbps or Mbps. */
|
||||
+ (NSString *)bitrateStringForBitrate:(double)bitrate;
|
||||
/** Updates the tracked bitrate with the new byte count. */
|
||||
- (void)updateBitrateWithCurrentByteCount:(NSInteger)byteCount;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user