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.