Hello,
We really don't allow you to do this easily from C# for many reasons. We do have a sample that shows how to do this. Basically you need to create a media sink in C++ and then use this to siphon off the bits. If you understand the
Media Foundation stack you should be able to modify the sample to fit your needs.
IMFStreamSink interface
http://msdn.microsoft.com/en-us/library/windows/desktop/ms705657(v=vs.85).aspx
Real-time communication sample
http://code.msdn.microsoft.com/windowsapps/Simple-Communication-Sample-eac73290
I hope this helps,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/