diff --git a/package.json b/package.json index ff00d51..ed078c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-mediapicker-dmcsdk", - "version": "2.4.5", + "version": "2.4.6", "description": "android ios mediaPicker support selection of multiple image and video", "cordova": { "id": "cordova-plugin-mediapicker-dmcsdk", diff --git a/plugin.xml b/plugin.xml index 4fde6e1..4614f23 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,6 +1,6 @@ - + MediaPicker diff --git a/src/ios/MediaPicker.m b/src/ios/MediaPicker.m index fe4f941..f71938e 100644 --- a/src/ios/MediaPicker.m +++ b/src/ios/MediaPicker.m @@ -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){