Dear all,
I've been searching around the internet for a solution to capture a
web page containing flash objects. I found the discussion below:
http://lists.apple.com/archives/Webkitsdk-dev/2006/May/msg00028.html
However, there's seem to be no solution to this problem.
The discussion said that Flash draws on a surface window attached to
the browser window. Based on this hint, I tried to count the no. of
windows in my App when there's flash in the WebView:
NSLog(@"No. of windows: %d", [[NSApp windows] count]);
Indeed, the no. of windows is more than the no. of windows visible
in the app.
I tried to capture the view stuff inside those hidden windows:
NSEnumerator *myEnum = [[NSApp windows] objectEnumerator];
NSWindow *win;
while ( (win = [myEnum nextObject]) ) {
NSLog( @"Window title: %@", [win title]);
if ( [[win title] isEqualToString:@""] ) {
NSView *otherView = [win contentView];
myrect = [otherView bounds];
NSBitmapImageRep *bmpMap2 = [viewToPrint
bitmapImageRepForCachingDisplayInRect:myrect];
NSImage *im2 = [[NSImage alloc] initWithSize:[bmpMap2 size]];
[im2 addRepresentation:bmpMap2];
// add image to the app. the image will be shown in its own window
[[NSApp delegate] addImage:im2];
[im2 release];
}
}
But it doesn't seem to be able to capture any well-formed image. It's
obvious that captureing Flash as bitmap is not that trivial.
Do you have any clues on this?
I m running 10.4.8 and Flash 9 player.
Thanks for your suggestion.
Best Regards,
Bill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden
This email sent to email@hidden