0

My question has similar point like this one.

I’m wondering how I can catch a media URL which SWF loads from browser add-on. Let’s say YouTube flash player starts playing or loading some video (let it be via http) and I want to know that url. Just like browser plugins from “RealDownloader” and “Moyea YouTube FLV Downloader” does. I’m newbie with plugin development and flash and I want to know what technologies it may be. XPCOM, NPAPI, ActiveX, or simple API hooking. Any ideas how this may be accomplished?

Community
  • 1
  • 1
Nazar Grynko
  • 561
  • 1
  • 5
  • 26

3 Answers3

1

NPAPI plugins typically ask the browser to load data for them, they don't do it themselves. This means that a browser extension can intercept these requests. This can be done for example by implementing a content policy. Requests initiated by a plugin will cause a shouldLoad call with type OBJECT_SUBREQUEST.

The simpler option is using HTTP observers - but this way you won't recognize requests initiated by Flash, they will look just like any other request processed by the browser.

Wladimir Palant
  • 56,865
  • 12
  • 98
  • 126
0

Firebug does that, and it's open source. Why not study it a little?

https://github.com/firebug/

Marcelo Assis
  • 5,136
  • 3
  • 33
  • 54
0

It's easy if you only want to get the url from a single swf in a single website. for example if all you need are urls from that swf,you can keep only one instance of your browser open and use a tool to intercept its http requests.