Share via

Render Video from raw frames on WASDK

Khoa Bui 56 Reputation points
2022-04-26T16:44:56.587+00:00

Hi,
My project is using wasdk c# (winUI3), I have video frame sequences returned by event and I need to render each frame on the view to display as a video (30 to 100 fps).
My current solution is use Image Control and WriteableBitmap, but I wonder that is it based on DirectX?
If not, how can I use directX for above problem since I heard that directX give the best performance?

Thank you.

Windows development | Windows App SDK
0 comments No comments

Answer accepted by question author

Castorix31 91,876 Reputation points
2022-04-26T17:23:54.853+00:00

An usual way is with a SwapChainPanel, like in this sample : WinAppSDK-MediaPlayer
You can see this doc for DirectX/XAML : DirectX and XAML interop

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Khoa Bui 56 Reputation points
    2022-04-27T05:06:31.627+00:00

    SwapChainPanel is good way to go, but I just found sample in c++/WinRT
    Is there anything related to use with c#?, and also I use mvvm pattern, so, is it supported for binding type or just code-behind?

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.