开发者_JAVA技巧I would like to identify the position of the flash object where the actual video is rendered using javascript. To be clear, for example in youtube, I would like to identify the position of the player where the video is shown (i.e. just above the control bar).Is that even possible? If it is, what is the best way to do it?
If you don't have access to the SWF, I would say no.
The only thing I can think of is to place a transparent <canvas>
-tag over the Flash video, then get the pixel data using getImageData()
, and compare a couple of frames and analyze what changes and assume that's the video. I have no idea if this would even work, just a thought.
精彩评论