问题
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 ?
回答1:
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.
来源:https://stackoverflow.com/questions/2980909/is-it-possible-to-catch-media-stream-url-of-flash-player-using-npapi-functions