Skip to content

Commit 33ecae7

Browse files
committed
Add StopAsync method
1 parent 5e46dbc commit 33ecae7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎MediaCaptureWPF/CapturePreview.cs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ public async Task StartAsync()
4040

4141
await m_capture.StartPreviewToCustomSinkAsync(profile, (IMediaExtension)m_preview.MediaSink);
4242
}
43+
44+
public async Task StopAsync()
45+
{
46+
await m_capture.StopPreviewAsync();
47+
}
4348
}
4449
}

0 commit comments

Comments
 (0)