Welcome to Microsoft Q&A!
If you want to create custom sink.
I suggest you could refer to the Doc: Using Custom Sinks
To create your own sink, implement the IWMWriterSink interface in a class in your application.
If you want to know how to get the
I suggest you could refer to the sample:https://github.com/microsoft/Windows-universal-samples/blob/main/Samples/SimpleCommunication/cs/CaptureDevice.cs
// Create new sink mediaSink = new StspMediaSinkProxy(); mediaSink.IncomingConnectionEvent += mediaSink_IncomingConnectionEvent; var mfExtension = await mediaSink.InitializeAsync(encodingProfile.Audio, encodingProfile.Video); await mediaCapture.StartRecordToCustomSinkAsync(encodingProfile, mfExtension);
According to the sample, as far as I'm concerned, you could get
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.