Please take a moment to fill out the following (change to preview to check or place x in []):
This is a
[x] Bug
[ ] Feature Request
Which plugin does this impact:
[ ] Battery
[ ] Connectivity
[ ] Contacts
[ ] DeviceInfo
[ ] ExternalMaps
[ ] Geolocator
[x] 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;
}
}
}
Please take a moment to fill out the following (change to preview to check or place x in []):
This is a
Which plugin does this impact:
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.