Search code examples
javascriptgoogle-chromedebuggingflashflv

How to set breakpoint in Chrome for when flash video is loaded?


In the Chrome debugger's 'Network' tab, the 'Other' sub-tab shows a .flv Flash file being played. I'm trying to figure out exactly where/how that .flv URL is being generated, but I've looked through the JS for the site and can't figure out where it comes from.

Is there a way to set a breakpoint for when that .flv file starts getting streamed/played so that I can figure out how it's URL is being put constructed?

The request headers for the flv file in the Chrome debugger show X-Requested-With:ShockwaveFlash/24.0.0.194. So the request comes from Flash rather than from a JS file I think.

Or any other ways to figure it out?


Solution

  • Either the embedded SWF (Flash) app has specific code to construct the url (then method is unknowable) or else the app is reading the url from somewhere like a JSON or XML text file.

    It could also construct by reading the text within an HTML / JS file. Third possibility is that PHP is involved in generating a link. So check the Network tab for such things (xml, json,php files which you open in a "new tab" to read).

    Was there no flv found when you word-search the source of html or JS?...
    If all else fails then provide a testable link.

    PS: To answer your Question : There's no loader breakpoints / load pausing in Chrome.