Saturday 15 March 2014

Delphi, chromium, tabs and flash trouble -


I have this project in which I need some tabs (TPageControl) with the flash tab being turned on and one of them Take a screenshot From time to time without switching the active tab I tried T chromiumOSr but the flash is not visible in it, if I click on the button of any page that opens a popup with flash, the maximum work Does it so With the word does not look like a problem, but with the frame or STH. Nobody.

Then I tried T chromium, everything is fine but I do not know how to capture a screenshot of control that is on non-active TTB sheet without activating the tab.

Using the latest dcef3 trunk

Any ideas? Thanks

EDIT: It was revealed that Flash is not visible in the OSR, an older Chromium bug. It is actually playing but is not visible, if "wmode" in embedding code is something other than "transparent" I have managed to change that property through js. In order to actually see the change, the flash object should be removed from the DOM and added again:

  chr1.browser.GetFrame (str [i]). ExecuteJavaScript ('document.getElementsByName ("wmode") [0] .value = "transparent";', '', 0); Chr1.browser.GetFrame (str [i]). ExecuteJavaScript ('document.getElementsByName ("wmode") [1] .value = "transparent";', '', 0); Chr1.browser.GetFrame (str [i]). ExecuteJavaScript ('var wtf = document.getElementById ("GameApp2");', '', 0); Chr1.browser.GetFrame (str [i]). ExecuteJavaScript ('document.getElementById ("GameApp2"). Remove ();', '', 0); Chr1.browser.GetFrame (str [i]). ExecuteJavaScript ('document.body.appendChild (wtf);', '', 0);    

If the tab is not being shown (it's not in front), it's ready Do not (this is an operating system thing). If it is not being dragged, there is nothing for the screenshot to capture

If you need to capture a flash page without displaying your requirement, then you can do it for another Find the way.

No comments:

Post a Comment