This commit is contained in:
2024-07-17 14:06:06 +08:00
parent 5c589a22fa
commit 11e9354b54
278 changed files with 331052 additions and 3935 deletions

View File

@@ -0,0 +1,51 @@
//
// AVPCacheConfig.h
// AliPlayerSDK
//
// Created by huang_jiafa on 2019/05/31.
// Copyright (c) 2019 Aliyun. All rights reserved.
//
#ifndef AVPCacheConfig_h
#define AVPCacheConfig_h
#import <Foundation/Foundation.h>
OBJC_EXPORT
@interface AVPCacheConfig : NSObject
/**
@brief 缓存目录
*/
/****
@brief The cache directory.
*/
@property (nonatomic, copy) NSString *path;
/**
@brief 单个视频缓存的最大时长单位秒即某个视频的时长超过maxDuration将不会被缓存
*/
/****
@brief The maximum length of a single video that can be cached. Unit: seconds. Videos that exceed the maximum length are not cached.
*/
@property (nonatomic, assign) long maxDuration;
/**
@brief 所有缓存最大占用空间单位MB
*/
/****
@brief The maximum cache memory size. Unit: MB.
*/
@property (nonatomic, assign) int maxSizeMB;
/**
@brief 是否开启缓存。默认关闭。
*/
/****
@brief Enable or disable content caching. Default: disabled.
*/
@property (nonatomic, assign) BOOL enable;
@end
#endif /* AVPCacheConfig_h */