Regarding Windows Phone 8.1 RT -HowTo: Turning the Flash Control ON while taking a Picture?
-
I am working in a custom camera renderer implemented a form.
TurnTorchOnOff() - The problem is that Doesnot WORK!
Here is the code:public void TurnTorchOnOff()
{
if (_mediaCapture.VideoDeviceController.FlashControl.Supported)
{
_mediaCapture.VideoDeviceController.FlashControl.Enabled = true;
_mediaCapture.VideoDeviceController.FlashControl.Auto = false;
if (_mediaCapture.VideoDeviceController.FlashControl.PowerSupported)
{
_mediaCapture.VideoDeviceController.FlashControl.PowerPercent = 100;
}
if (_mediaCapture.VideoDeviceController.FlashControl.AssistantLightSupported)
_mediaCapture.VideoDeviceController.FlashControl.AssistantLightEnabled = false;
}
else
{
UserDialogs.Instance.Alert("No Flash Control supported on this device", Strings.Atte:)