|
Posted by Sreekanth on October 31, 2006, 9:46 am
Please log in for more thread options
Hi
It was the problem with Windows Media Player on Emulator. The filter is
detected in the device.
Regards
Sreekanth
Sreekanth wrote:
> Hi,
>
> I am currently developing a Directshow filter for Windows Mobile 5.0
> Smartphone SDK. I have developed the filter and tested it (On
> emulator). I am also able to register the same with the smartphone
> emulator using VS.NET 2005.
>
> I am able to programmatically render my custom video file but the
> Windows media Player is unable to play the same video file.
>
> The Code is able to locate the filter and add it to the filter graph
> manager(automatically). But I have no clue on why Windows Media player
> is unable to locate the same.
>
> The Filter also has a registry entry under Filters Section which lists
> all the filters which are used in Intelligent connect mechanism.
>
> I would be grateful for any help on this issue.
>
> I am doing the following in the sample Windows application ::
>
> IGraphBuilder* g_graphBuilder;
>
> IMediaControl * myControl;
>
> HRESULT myResult;
> CoInitializeEx(NULL, COINIT_MULTITHREADED);
> HRESULT hr;
> hr =
>
CoCreateInstance(CLSID_FilterGraph,NULL,CLSCTX_INPROC_SERVER,IID_IGraphBuilder,(void
> **) & g_graphBuilder);
> g_graphBuilder->QueryInterface(IID_IMediaControl, (void **)
> &myControl);
> myResult = g_graphBuilder->RenderFile(L"\final.avi",NULL);
>
> if(SUCCEEDED(myResult))
> {
> myControl->Run();
> }
|