Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Use MediaFrameReader instead of MediaCapture.GetPreviewFrameAsync #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pregress
Copy link

@pregress pregress commented Oct 8, 2019

Biggest change:
_mediaCapture.GetPreviewFrameAsync has a memory leak on Windows 1903.
MicrosoftDocs/winrt-api#1066
Used MediaFrameReader as work around.

Minor changes:

  • Update nuget packages to latest version
  • Added Serilog.Debug.Sink to log to Visual Studio output window
  • Use the first camera it can find, if no back camera is available (Mostly for debugging purpose)
  • Fixed null pointers and not supported exceptions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant