Note that there are some explanatory texts on larger screens.

plurals
  1. POIGraphBuilder::RenderFile() failing with VFW_E_BAD_KEY - 0x800403f2
    primarykey
    data
    text
    <p>Continuing investigation on a <a href="https://stackoverflow.com/questions/1935964/basic-playback-with-programmatically-created-windows-media-player">embedded WindowsMediaPlayer problem</a>, i am trying to do simple file playback via a DirectShow in-process server:</p> <pre><code>::CoInitializeEx(0, COINIT_MULTITHREADED); CComPtr&lt;IGraphBuilder&gt; spGraph; spGraph.CoCreateInstance(CLSID_FilterGraph, 0, CLSCTX_INPROC_SERVER); CComQIPtr&lt;IMediaControl&gt; spMediaControl(spGraph); // ... later: spGraph-&gt;RenderFile(L"c:\\foo.wav", 0); // fails with VFW_E_BAD_KEY spMediaControl-&gt;Run(); </code></pre> <p>Interestingly, this runs fine on both systems i tested on (Windows XP 32 &amp; x64) when doing it in a stand-alone application.<br> It however fails in my real use-case, a NPAPI based browser plugin - i.e. a DLL loaded into Firefox/Chrome/Opera.</p> <p>Does anyone have an idea what could be going wrong here?<br> Or ideas on what else to try?</p> <p><em>Update:</em> also asked on the <a href="http://social.msdn.microsoft.com/Forums/en/windowsdirectshowdevelopment/thread/8eb3c3b4-f0d1-4aee-9e58-70bd892d879c" rel="nofollow noreferrer">Microsoft forums</a>. </p> <p><em>Update2:</em><br> <code>IGraphBuilder::AddSourceFilter(path,path,&amp;base)</code> already fails with the following registry calls (as seen in process monitor):</p> <pre> "RegOpenKey","HKCU\Software\Classes\c","NAME NOT FOUND","Desired Access: Query Value, Maximum Allowed" "RegOpenKey","HKCU\Software\Classes\Media Type\Extensions\.wav","NAME NOT FOUND","Desired Access: Read" "RegOpenKey","HKCU\Software\Classes\Media Type","NAME NOT FOUND","Desired Access: Read" </pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload