I wish to combine lamp plugin and media plugin together, so is it possible?
Below is my code but not working:
CrossMedia.Current.Initialize();
if (!CrossMedia.Current.IsTakePhotoSupported && !CrossMedia.Current.IsTakeVideoSupported)
{
DisplayAlert("Message", "Photo Capture and Pick Not supported", "ok");
return;
}
else
{
CrossLamp.Current.TurnOn();
var file = CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
{
//DefaultCamera = Plugin.Media.Abstractions.CameraDevice.Front,
CompressionQuality = 92,
SaveToAlbum = true,
Directory = "Image",
Name = DateTime.Now + "_test.jpg"
});