For rendering asf file, we have to use ASF reader as file source...
IBaseFilter* m_pReader;
IFileSourceFilter* m_pFileSource;
CoCreateInstance(CLSID_WMAsfReader, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void **) &m_pReader);
    // Add the ASF reader filter to the graph.  For ASF/WMV/WMA content,
    // this filter is NOT the default and must be added explicitly.
   m_pGraphBuilder->AddFilter(m_pReader, L"ASF Reader");
  
    // Set its source filename
    m_pReader->QueryInterface(IID_IFileSourceFilter, (void **) &m_pFileSource);
    // Attempt to load this file
    m_pFileSource->Load(m_wcMediaName, NULL);
if we are rendering the output pin of the m_pReader , we will get 
the display in video window...
Wednesday, April 04, 2007
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment