//
//  YCKGlobalDefs.h
//  YCKSdwan
//
//  Created by 徐家骏 on 2020/4/11.
//  Copyright © 2020 徐家骏. All rights reserved.
//

#ifndef YCKGlobalDefs_h
#define YCKGlobalDefs_h

//这个event，在YCKit中也有一套，两边基本相同但可能有不完全相同，所以暂时的解决办法是保证取值一致。。。
typedef NS_ENUM(uint32_t, YCKDeviceStatusEvent) {
    YCKDeviceStatusEventInterruptedBySystemCall = 20,
    
    YCKDeviceStatusEventInterruptedBySystemCallRecover = 21,
    
    YCKDeviceStatusEventPoorNetworkLocal = 30,
    
    YCKDeviceStatusEventPoorNetworkRemote = 40,
    
    YCKDeviceStatusEventCameraOn  = 50,
    
    YCKDeviceStatusEventCameraOff  = 51,
    
    YCKDeviceStatusEventMicMuted  = 60,
    
    YCKDeviceStatusEventMicOpen = 61,
    
    YCKDeviceStatusEventEnterBackground = 70,
    
    YCKDeviceStatusEventEnterForeground = 71,
    
    YCKDeviceStatusEventAudioInterruptedBegin = 80,
    
    YCKDeviceStatusEventAudioInterruptedEnd = 81,
    
    YCKDeviceStatusEventAudioGraphFail = 90,
};

struct YCKNetworkInfo {
    int networkStatus;
	int RTT;
	int bandwidthDown;
	int bandwidthUp;
	int lossRateUp;
	int lossRateDown;
    int jitterBufferLoss;
};


#endif /* YCKGlobalDefs_h */
