in src/CognitiveKioskUWP/MainPage.xaml.cs [86:97]
private async void TimerFailsafe_Tick(object sender, object e)
{
// Check for shutoff time
if (DateTime.Now.Subtract(faceLastDate).TotalMinutes > 30)
{
faceLastDate = DateTime.Now;
DisableUI();
await StopMediaCapture();
await StartPreviewAsync();
}
}