You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
Implement the SampleGrabberSinkCallback interface.
Although reflecting into SharpDX.MediaFoundation.SampleGrabberSinkCallback shows that it is implemented as a class, not an interface. Is this incorrect, or is there a different way to setup a custom SampleGrabberSinkCallback? Is there possibly a helper method to set callbacks on the OnProcessSample event or something that I'm missing?
The text was updated successfully, but these errors were encountered:
Unfortunately, the SampleGrabberSinkCallback is not implemented as a callback in C#. It is requiring some manual code to handle it and there are probably lots of interfaces like this in MediaFoundation that are not covered. Though at the moment, I have no time to fix this particular issue for MediaFoundation, but if someone is interested, this can be done by following the "Shadow pattern" that is used in many places in SharpDX to provide C++ interface callback in C#
From the docs: http://sharpdx.org/documentation/api/t-sharpdx-mediafoundation-samplegrabbersinkcallback
The sample-grabber sink enables an application...
Implement the SampleGrabberSinkCallback interface.
Although reflecting into SharpDX.MediaFoundation.SampleGrabberSinkCallback shows that it is implemented as a class, not an interface. Is this incorrect, or is there a different way to setup a custom SampleGrabberSinkCallback? Is there possibly a helper method to set callbacks on the OnProcessSample event or something that I'm missing?
The text was updated successfully, but these errors were encountered: