//
//  NXLiveDebug.h
//  NXLive
//
//  Created by Neuxnet on 2020/11/20.
//  Copyright © 2020 wangran. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface NXLiveDebug : NSObject

@property (nonatomic, copy) NSString *roomID;                     /// 房间ID

@property (nonatomic, copy) NSString *streamID;                     /// 流id
@property (nonatomic, copy) NSString *uploadUrl;                    /// 流地址
@property (nonatomic, assign) CGSize videoSize;                     /// 上传分辨率
@property (nonatomic, assign) BOOL isRtmp;                          /// 上传方式（TCP or RTMP）

@property (nonatomic, assign) CGFloat elapsedMilli;                 /// 距离上次统计的时间 ms
@property (nonatomic, assign) CGFloat timestamp;                    /// 当前的时间戳，从而计算1s内数据
@property (nonatomic, assign) CGFloat bandwidth;                    /// 1s内总带宽
@property (nonatomic, assign) CGFloat currentBandwidth;             /// 上次带宽
@property (nonatomic, assign) CGFloat dataFlow;                     /// 总流量
@property (nonatomic, assign) CGFloat audioDataFlow;                /// 音频总流量
@property (nonatomic, assign) CGFloat videoDataFlow;                /// 视频总流量

@property (nonatomic, assign) NSInteger dropFrame;                  /// 丢掉的帧数
@property (nonatomic, assign) NSInteger totalFrame;                 /// 总帧数

@property (nonatomic, assign) NSInteger captureAudioTotalCount;     /// 捕捉音频总数
@property (nonatomic, assign) NSInteger captureVideoTotalCount;     /// 捕捉视频总数
@property (nonatomic, assign) NSInteger captureAudioCount;          /// 1s内捕捉音频个数
@property (nonatomic, assign) NSInteger captureVideoCount;          /// 1s内捕捉视频个数
@property (nonatomic, assign) NSInteger currentCaptureAudioCount;   /// 上次捕捉音频个数
@property (nonatomic, assign) NSInteger currentCaptureVideoCount;   /// 上次捕捉视频个数

@property (nonatomic, assign) NSInteger unSendCount;                /// 未发送个数（代表当前缓冲区等待发送的）


@property (nonatomic, strong) NSDate *startDate;                    /// 开始时间
@property (nonatomic, strong) NSDate *stopDate;                     /// 结束时间
@end

NS_ASSUME_NONNULL_END
