FWPlayerCacheLoaderManager
@interface FWPlayerCacheLoaderManager : NSObject <AVAssetResourceLoaderDelegate>
@property (nonatomic, weak, nullable) id<FWPlayerCacheLoaderManagerDelegate> delegate;
/**
Normally you no need to call this method to clean cache. Cache cleaned after AVPlayer delloc.
If you have a singleton AVPlayer then you need call this method to clean cache at suitable time.
*/
- (void)cleanCache;
/**
Cancel all downloading loaders.
*/
- (void)cancelLoaders;
+ (NSURL *)assetURLWithURL:(NSURL *)url;
- (AVURLAsset *)URLAssetWithURL:(NSURL *)url;
- (AVPlayerItem *)playerItemWithURL:(NSURL *)url;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<FWPlayerCacheLoaderManagerDelegate> delegate
-
Normally you no need to call this method to clean cache. Cache cleaned after AVPlayer delloc. If you have a singleton AVPlayer then you need call this method to clean cache at suitable time.
Declaration
Objective-C
- (void)cleanCache;
-
Cancel all downloading loaders.
Declaration
Objective-C
- (void)cancelLoaders;
-
Undocumented
Declaration
Objective-C
+ (NSURL *)assetURLWithURL:(NSURL *)url;
-
Undocumented
Declaration
Objective-C
- (AVURLAsset *)URLAssetWithURL:(NSURL *)url;
-
Undocumented
Declaration
Objective-C
- (AVPlayerItem *)playerItemWithURL:(NSURL *)url;