ios erro log

This commit is contained in:
yaw
2019-07-18 17:25:51 +08:00
parent 4278dd4065
commit 99236b4654
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -170,7 +170,8 @@
[exportSession exportAsynchronouslyWithCompletionHandler:^{
if (exportSession.status == AVAssetExportSessionStatusFailed) {
[self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"compress failed"] callbackId:callbackId];
NSString * errorString = [NSString stringWithFormat:@"videoToSandboxCompress failed %@",exportSession.error];
[self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:errorString] callbackId:callbackId];
NSLog(@"failed");
} else if(exportSession.status == AVAssetExportSessionStatusCompleted){