xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.52k stars 505 forks source link

[Bug] Xamarin.Essentials: Media Picker OpenReadAsync Throws Exception On Videos in IOS 14.2 #1683

Open codewithjehan opened 3 years ago

codewithjehan commented 3 years ago

Description

Xamarin.Essentials: Media Picker is throwing an exception when I call OpenReadAsync() on a Video FileResult on iOS 14.2 after selecting a video from the phone's gallery. The exception is below.

System.UnauthorizedAccessException: Access to the path "/private/var/mobile/Containers/Data/PluginKitPlugin/Guid/tmp/trim.A86E56CE-0FF8-427D-AA7E-20E12441BA42.MOV" is denied

Steps to Reproduce

  1. Use the media picker on an iOS phone running 14.2
  2. Select a video
  3. call OpenReadAsync();

Expected Behavior

The stream should open and read

Actual Behavior

an exception is thrown System.UnauthorizedAccessException

Basic Information

Screenshots

Reproduction Link

Jon2G commented 3 years ago

Same here,any fix? iOS 14.5