Search code examples
google-chromegoogle-chrome-extensionnpapi

NPAPI and GOOGLE Chrome : MIME type of DLL


What is MIME type of DLL that required to to set in following tag.

<embed id="pluginId" type="application/<MIME TYPE OF DLL>"

Do I need to make changes in DLL to set MIME type of DLL? I have read on forum, to set mime type in .rc file. VALUE "MIMEType", "application/myapp"

But how to do with vs 2008 DLL.


Solution

  • Yes, the mimetype is set in the .rc file, which requires a recompile. To se the mimetype, put it in a STRING resource called MIMEType.

    see https://github.com/firebreath/FireBreath/blob/master/gen_templates/firebreathWin.rc#L63 -- this is FireBreath's .rc file template.