Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to create and use a filter in which i have to make socket connection receive the data and then pass the data to the direct show filter for playing....can you give me some guidance how to do this and which samples do i read?
Posted
Comments
Sandeep Mewara 2-Jan-13 23:16pm    
Tried to find material on net?

1 solution

Hello,

If you need C++ solution you should check DSNetwork Sample[^]
It is in old DirectX 9 SDK in DirectShow Filters Samples it can be easy modify to work not only with mpeg2 transport streams.

If you need C# solution example you can check my sample filters: Pure .NET DirectShow Filters in C#[^]

Regards,
Maxim.
 
Share this answer
 
Comments
Tarun Batra 10-Jan-13 6:54am    
Thanks for the reply sir but i was trying to convert http://www.codeproject.com/Articles/158053/DirectShow-Filters-Development-Part-2-Live-Source into c# filter using your solution but i got stuck in "COM plumbing" part of the above link,i was not able to get the c# code of the "COM plumbing" part
Maxim Kartavenkov 10-Jan-13 6:58am    
Yes, I wrote you note regarding that.
Tarun Batra 10-Jan-13 7:04am    
but i am not able to get the CUnknown class and NonDelegatingQueryInterface(REFIID riid, void **ppv) interface in your base classes code how to get that as you can see the below code return s the CUnknown pointer
CUnknown* WINAPI CLiveSource::CreateInstance(LPUNKNOWN pUnk, HRESULT *phr)
{
CUnknown* pNewFilter = new CLiveSource(pUnk, phr);

if (phr)
{
if (pNewFilter == NULL)
*phr = E_OUTOFMEMORY;
else
*phr = S_OK;
}

return pNewFilter;
}
Maxim Kartavenkov 10-Jan-13 7:11am    
Sure, but had you asking the question to yourself: "what for it is needed?"
Tarun Batra 10-Jan-13 7:15am    
i am asking to you sir where can i find the CUnknown class in your base classes and NonDelegatingQueryInterface(REFIID riid, void **ppv) as there is no thing like REFIID in your samples,are there any alternative for these?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900