|
|
@@ -20,6 +20,7 @@
|
|
|
#import "uploadFileManager.h"
|
|
|
#import "cloudPhoneExtraFileListModel.h"
|
|
|
#import "AppDelegate.h"
|
|
|
+#import "cachesFileManager.h"
|
|
|
|
|
|
@implementation PlayerViewController (otherDelegate)
|
|
|
|
|
|
@@ -379,4 +380,32 @@
|
|
|
ksharedAppDelegate.cloudPhoneExtraFileListMod = model;
|
|
|
}
|
|
|
|
|
|
+- (void)saveLastImageFun
|
|
|
+{
|
|
|
+ UIImage *image = [UIImage imageWithCIImage:saveCIImage];
|
|
|
+ if(image){ //执行返回最后一帧
|
|
|
+ //[mPlayerView.showImageView setImage:image];
|
|
|
+
|
|
|
+ NSString *filePath = kSHPath_cloudPhone_last_image;
|
|
|
+ NSString *folderPath = [kSHPath_cloudPhone_last_image stringByDeletingLastPathComponent];
|
|
|
+ [[NSFileManager defaultManager] removeItemAtPath:folderPath error:nil];
|
|
|
+ [cachesFileManager getCreateFilePath:folderPath];
|
|
|
+ NSData*imageData = UIImagePNGRepresentation(image);
|
|
|
+
|
|
|
+ BOOL ret = [imageData writeToFile:filePath atomically:NO];
|
|
|
+
|
|
|
+ if (ret) {
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+- (void)readLastImageFun
|
|
|
+{
|
|
|
+ NSString *filePath = kSHPath_cloudPhone_last_image;
|
|
|
+ UIImage *image = [UIImage imageWithContentsOfFile:filePath];
|
|
|
+ if(image && !saveCIImage){
|
|
|
+ [mPlayerView.showImageView setImage:image];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
@end
|