Open thedee opened 4 years ago
its fixed in 4.4.10, but might be ok already from 4.4.6 see #739
I am still seeing this exception but now it does not crash and continues to work.... Very odd, I am on 4.4.6 beta.
@Ruddy2007 I see it too on 5.0.1 Not on all devices though.
Did you find an answer?
I call in a using statement like this:
using (var file = await CrossMedia.Current.TakeVideoAsync(videoOptions).ConfigureAwait(false)) {
}
Wonder if that has anything to do with is
Stack Trace:
System.UnauthorizedAccessException: Access to the path '/private/var/mobile/Containers/Data/PluginKitPlugin/BD0317A2-FE5B-4737-9813-BD36C5E82411/tmp/trim.88A08CEB-B4ED-44F5-90AF-53A705AA5D67.MOV' is denied.
at System.IO.FileSystem.DeleteFile (System.String fullPath) <0x1023b2890 + 0x00138> in <cbddc4225b2f45f09f3a1d43a1268bc0#5fa46aa2ae7f2743b43e927cead65311>:0
at System.IO.FileSystem.MoveFile (System.String sourceFullPath, System.String destFullPath) <0x1023b27d0 + 0x000a3> in <cbddc4225b2f45f09f3a1d43a1268bc0#5fa46aa2ae7f2743b43e927cead65311>:0
at System.IO.File.Move (System.String sourceFileName, System.String destFileName) <0x1023b15b0 + 0x0007f> in <cbddc4225b2f45f09f3a1d43a1268bc0#5fa46aa2ae7f2743b43e927cead65311>:0
at Plugin.Media.MediaPickerDelegate.GetMovieMediaFile (Foundation.NSDictionary info) <0x10413fef0 + 0x001ff> in <390f35b1db5e43b894d803204ceef8a9#5fa46aa2ae7f2743b43e927cead65311>:0
at Plugin.Media.MediaPickerDelegate.FinishedPickingMedia (UIKit.UIImagePickerController picker, Foundation.NSDictionary info) <0x10413e340 + 0x00443> in <390f35b1db5e43b894d803204ceef8a9#5fa46aa2ae7f2743b43e927cead65311>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.
@ledragon101 Super late response as I just ran into this issue again... I never found a way around it.
Did you have any luck?
@ledragon101 Super late response as I just ran into this issue again... I never found a way around it.
Did you have any luck?
@Ruddy2007 same again...did you manage to resolve?
@meopoc Nope never resolved the issue.
@Ruddy2007 Annoying huh....I think it's related to the videos being stored in iCloud but bashing my head trying to figure out how to remedy.
When doing a PickVideoAsync() after you select the video and then the compression status appears if you click outside of the popup an exception occurs.
My code is this: var file = await CrossMedia.Current.PickVideoAsync();
To reproduce: Choose a video Select "Use" in upper right corner As it is "Compressing Video..." click outside of the Choose Video popup. From here an exception occurs.
I am using: Xam.Plugin.Media >>> 4.4.5-beta (could not install 4.4.10-beta due to #756 ) iOS >>> 12.1.1
Exception details: