How to identify a window playing a video in a browser

399 Views Asked by At

I wish to understand how one can programmatically identify if a window is playing video content? I used spy++ to identify particular attributes for windows playing video but I did not find any particular attributes associated with window playing video. I have handles to all windows on screen and want to find which ones are playing video ? Could you please throw some light on how can one do this and are there any special properties associated with a window playing video?

I found similar article : can we get window handle of the window which is playing video? But I don't want to minimize application , I know user is using browser(ie,firefix,chrome) to watch video (from youtube,hulu)and window is visible on screen.

1

There are 1 best solutions below

0
On

You can if you have execution privileges over the environment the Flash Player is executed in. You can listen for the playing event thrown by the Flash Player.

Listen for my Flash event in Javascript