//
//  MKRPlayResourceStatus.h
//  MKRAVPlayer
//
//  Created by yyqxiaoyin on 2019/4/11.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, MKRResourcePlayState) {
    MKRResourcePlayStateBuffering = 0,
    MKRResourcePlayStatePlaying,
    MKRResourcePlayStatePause,
    MKRResourcePlayStateStopped,
    MKRResourcePlayStateFinished,
    MKRResourcePlayStateFaild,
};

@interface MKRPlayResourceStatus : NSObject

/** WIFI设备的播放状态是字符串 根据字符串判断播放状态 */
- (MKRResourcePlayState)updatePlayState:(NSString *)playStateString;

/**
 当前播放状态
 */
@property (nonatomic, assign) MKRResourcePlayState playState;

/**
 是否正在播放中
 */
@property (nonatomic, assign) BOOL isPlaying;

/*
 * 当前播放秒数
 * */
@property(nonatomic, assign) NSInteger currentTime;

/*
 * 资源总时长
 * */
@property(nonatomic, assign) NSInteger totalTime;

@property (nonatomic, assign) NSTimeInterval currentDuration;

@property (nonatomic, assign) NSTimeInterval totalDuration;

/*
 * 当前播放时间字符串 格式:xx:xx:xx
 **/
@property(nonatomic, strong) NSString *currentTimeFormatString;

/*
 * 总播放时长字符串 格式:xx:xx:xx
 **/
@property(nonatomic, strong) NSString *totalTimeFormatString;

@end
