Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

CrossMedia.Current.TakeVideoAsync Returns Null on Android 13 #956

Open
dartur123 opened this issue Mar 3, 2023 · 9 comments
Open

CrossMedia.Current.TakeVideoAsync Returns Null on Android 13 #956

dartur123 opened this issue Mar 3, 2023 · 9 comments

Comments

@dartur123
Copy link

Bug Information

Version Number of Plugin: 6.0.1-beta
Device Tested On: Samsung A7 Android 13
Simulator Tested On: Generic Tab but same specs with Samsung A7 Android 13
Version of VS: VS2022 professional 17.5.1
Version of Xamarin: Xamarin Native
Versions of other things you are using:

Steps to reproduce the Behavior

Use CrossMedia.Current.TakeVideoAsync considering the read_media_videos permission is granted by the user

Expected Behavior

It will return a value

Actual Behavior

It returns null

Code snippet

using (var file = await CrossMedia.Current.TakeVideoAsync(new StoreVideoOptions
{
Quality = VideoQuality.Medium
}))
{
if (file != null)
filePath = file.Path;
else
return;
}

Screenshots

image

@dartur123
Copy link
Author

Hello @jamesmontemagno. I hope you can check this one. Thank you so much!

@ArpitViradiya
Copy link

This issue is fixed in 6.0.1-beta.

@dartur123
Copy link
Author

@ArpitViradiya already using 6.0.1-beta

@ArpitViradiya
Copy link

@dartur123 I have not any issue with 6.0.1-beta for Android 13 (Google PIxel 7 Pro)

@dartur123
Copy link
Author

@ArpitViradiya Do you think there's something I'm missing out why it returns null?

@ArpitViradiya
Copy link

@dartur123 Check your permissions and run your code on main thread like this
Device.BeginInvokeOnMainThread(async () =>{ });

@Samorax
Copy link

Samorax commented Aug 6, 2023

@dartur123 I am having the same issue. Were you able to fix it?

@dartur123
Copy link
Author

dartur123 commented Aug 7, 2023

@Samorax I'm still not able to fix the issue on the emulator but I confirmed it's working on the physical device.

@Samorax
Copy link

Samorax commented Aug 13, 2023

@dartur123 Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants