File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,11 @@ - (instancetype)initWithCall:(FlutterMethodCall *)call frameUpdater:(FLTFrameUpd
50
50
id cacheFolderPath = argsMap[@" cachePath" ];
51
51
if (cacheFolderPath!=nil &&cacheFolderPath!=NULL &&![@" " isEqualToString: cacheFolderPath]&&cacheFolderPath!=[NSNull null ]) {
52
52
playConfig.cacheFolderPath = cacheFolderPath;
53
- playConfig.maxCacheItems = 2 ;
53
+ playConfig.maxCacheItems = 20 ;
54
54
}else {
55
55
// 设置缓存路径
56
- // playConfig.cacheFolderPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
57
- playConfig.maxCacheItems = 0 ;
56
+ playConfig.cacheFolderPath =[NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES ) objectAtIndex: 0 ];
57
+ playConfig.maxCacheItems = 10 ;
58
58
}
59
59
60
60
playConfig.progressInterval = 1 ;
You can’t perform that action at this time.
0 commit comments