Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:On the Windows app SDK using CameraHelper, FrameArrived time execution for a period of time will not be triggered. #376

Merged

Conversation

GreenShadeZhang
Copy link
Contributor

fix: On the Windows app SDK using CameraHelper, FrameArrived time execution for a period of time will not be triggered.

Maybe my modification is not perfect, but it seems that this can solve the problem of event triggering. I hope you can give some good opinions and suggestions so that this function can be used normally in Windows App SDK applications.

Fixes

Fixes #375

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Currently, when a video frame arrives, the event is not triggered.

What is the new behavior?

Through my PR I test the video frame in the test code, and the video frame processing event is still triggered for a long time.

test-video.mp4

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • New component
    • Documentation has been added
    • Sample in sample app has been added
    • Analyzers are passing for documentation and samples
    • Icon has been created (if new sample) following the Thumbnail Style Guide and templates
  • Tests for the changes have been added (if applicable)
  • Header has been added to all new source files
  • Contains NO breaking changes

Other information

App11 is the test project I use.

App11.zip

…ution for a period of time will not be triggered.
Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @GreenShadeZhang for digging into this issue and submitting a PR. 🦙❤️

components/Helpers/src/CameraHelper/CameraHelper.cs Outdated Show resolved Hide resolved
components/Helpers/src/CameraHelper/FrameEventArgs.cs Outdated Show resolved Hide resolved
@michael-hawker michael-hawker added this to the 8.1 milestone Mar 26, 2024
update frame dispose

Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
@Arlodotexe Arlodotexe merged commit bbe5b18 into CommunityToolkit:main Mar 28, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
3 participants