MediaPlugin: [Media] Taking a video on Marshmallow(6.0.1) always returns null.
From @swansca79 on May 10, 2016 13:0
Please take a moment to fill out the following (change to preview to check or place x in []):
This is a
- Bug
- Feature Request
Which plugin does this impact:
- Battery
- Connectivity
- Contacts
- DeviceInfo
- ExternalMaps
- Geolocator
- Media
- Permissions
- Settings
- Text To Speech
- Vibrate
- Other:
Version Number of Plugin: 2.3.0 Device Tested On: Nexus 6P 6.0.1 w/ April Security patches Simulator Tested On:
Expected Behavior
Taking a video should return a MediaFile result.
Actual Behavior
Always returns null.
Steps to reproduce the Behavior
When this was originally implemented it worked, and all I can say for sure was that it was before the April security patches on my Nexus 6P. This bug does not happen on pre-marshmallow devices.
- New forms project 2.2.0.31 (also happens on 2.1.0.6529)
- Add media plugin
- Run this code
async void MakeNewVideo(){
IMedia media = CrossMedia.Current;
await media.Initialize ();
if (media.IsTakeVideoSupported) {
MediaFile result = await media.TakeVideoAsync (new StoreVideoOptions (){ Quality= VideoQuality.Medium });
if (result != null) {
VideoPathLabel.Text += result.Path;
}
}
}
Copied from original issue: jamesmontemagno/Xamarin.Plugins#297
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 36 (12 by maintainers)
Commits related to this issue
- Fix for #10 to move content resolver delete when picking video. — committed to jamesmontemagno/MediaPlugin by jamesmontemagno 8 years ago
Will need someone to debug the source code as of the 5 android devices I have none of them have 6.0.1 on them.