问题描述
使用James Montemagno库在Xamarin中拍照时,如何强制使用特定相机拍摄照片?
这就是我在做什么:
// Open the camera and take a photo
var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{
DefaultCamera = Plugin.Media.Abstractions.CameraDevice.Rear,SavetoAlbum = true,Directory = directory,Name = fileName,Location = await GetMediaLocation(),SaveMetaData = true
});
照片始终使用我在应用程序外部使用的“最后一个”相机(使用默认相机应用程序)拍摄。
似乎忽略了指定的DefaultCamera。
我正在使用
- Visual Studio 2019
- Xaml.Plugin.Media版本5.0.1
- 移动设备是三星A8(如果有所作为)
感谢您的任何输入。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)