Havvy wrote:
Generally, I use presShell->RenderDocument() render out the page in memory
and then get cairo_surface_t from gfxContext. By cario I write the
cairo_image_surface_t.data into a ppm file.
Unfortunately, I can't write a flash into file with cario. Is this correct?
Is there any solution for this situation?

It should work for windowless flash, I would have thought. Windowed is harder. roc might know more here.

Regarding flash, I intend to do screen capture by Gtk. Firstly bind a Gtk
window to the baseWindow and then dump the pixels in the window.
Thus, I need to know whether the page contains a flash block.

Flash specifically, or any plug-in? I would think all plug-ins would have the same issues; Flash is not special.

By detecting mimeType is not a reliable way to do this.

Right.

Any other suggestions?

You could watch nsIContentPolicy for ShouldLoad/ShouldProcess calls for TYPE_OBJECT, I'd think.

-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to