Search code examples
c++google-chromestreammedianpapi

Is it possible to catch media stream URL of flash player using NPAPI functions?


I'm trying to make a video download panel for Chrome likes Real Player's one ( a DLL plugin )..
My question is :
"Is it possible to use NPAPI functions such as NPP_NewStream, NPP_StreamAsFile, NPP_DestroyStream... to catch the media stream URL of flash-player ? " If not, then what part of NPAPI do I have to use ?


Solution

  • Using the NPAPI you can't magically spy on other components in the browser, the stream functions are for dealing with streams for your own plugin instance.

    If the Flash player gives you access to the URL using scripting functions however, you can use the scripting extensions to get it similar to how you'd retrieve it using JavaScript.