Skip to content
Permalink
Browse files

Accessing only the video not the auto stream for scanning QR Codes

  • Loading branch information...
COM8 committed Aug 23, 2019
1 parent c3a9505 commit ae0c4901fa6bf60776fea23c635233be3117cc99
@@ -1,9 +1,9 @@
using Logging;
using Microsoft.Toolkit.Uwp.Helpers;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Logging;
using Microsoft.Toolkit.Uwp.Helpers;
using Windows.Graphics.Display;
using Windows.Graphics.Imaging;
using Windows.Media.Capture;
@@ -15,7 +15,7 @@

namespace UWP_XMPP_Client.Controls.Omemo
{
public sealed partial class QRCodeReaderControl : UserControl
public sealed partial class QRCodeReaderControl: UserControl
{
//--------------------------------------------------------Attributes:-----------------------------------------------------------------\\
#region --Attributes--
@@ -50,7 +50,13 @@ public async Task StartCameraAsync()
try
{
camera = new MediaCapture();
await camera.InitializeAsync();

MediaCaptureInitializationSettings settings = new MediaCaptureInitializationSettings()
{
StreamingCaptureMode = StreamingCaptureMode.Video
};

await camera.InitializeAsync(settings);

displayRequest.RequestActive();
}
@@ -41,6 +41,5 @@
<Capability Name="privateNetworkClientServer" />
<uap:Capability Name="picturesLibrary" />
<DeviceCapability Name="webcam" />
<DeviceCapability Name="microphone" />
</Capabilities>
</Package>

0 comments on commit ae0c490

Please sign in to comment.
You can’t perform that action at this time.