FWPlayerCacheWorker
@interface FWPlayerCacheWorker : NSObject
- (instancetype)initWithURL:(NSURL *)url;
@property (nonatomic, strong, readonly) FWPlayerCacheConfiguration *cacheConfiguration;
@property (nonatomic, strong, readonly) NSError *setupError; // Create fileHandler error, can't save/use cache
- (void)cacheData:(NSData *)data forRange:(NSRange)range error:(NSError **)error;
- (NSArray<FWPlayerCacheAction *> *)cachedDataActionsForRange:(NSRange)range;
- (NSData *)cachedDataForRange:(NSRange)range error:(NSError **)error;
- (void)setContentInfo:(FWPlayerCacheContentInfo *)contentInfo error:(NSError **)error;
- (void)save;
- (void)startWritting;
- (void)finishWritting;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithURL:(NSURL *)url;
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) FWPlayerCacheConfiguration *cacheConfiguration
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSError *setupError
-
Undocumented
Declaration
Objective-C
- (void)cacheData:(NSData *)data forRange:(NSRange)range error:(NSError **)error;
-
Undocumented
Declaration
Objective-C
- (NSArray<FWPlayerCacheAction *> *)cachedDataActionsForRange:(NSRange)range;
-
Undocumented
Declaration
Objective-C
- (NSData *)cachedDataForRange:(NSRange)range error:(NSError **)error;
-
Undocumented
Declaration
Objective-C
- (void)setContentInfo:(FWPlayerCacheContentInfo *)contentInfo error:(NSError **)error;
-
Undocumented
Declaration
Objective-C
- (void)save;
-
Undocumented
Declaration
Objective-C
- (void)startWritting;
-
Undocumented
Declaration
Objective-C
- (void)finishWritting;