• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Capture youtube image in webview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capture youtube image in webview


  • Subject: Capture youtube image in webview
  • From: Xin <email@hidden>
  • Date: Thu, 10 Apr 2008 11:24:53 +0200

Hello,

First, sorry for my english, I'm a catalan.

Well, I'm a newbee in Mac and Cocoa and I have tried to make an application for capture an image of web. It's all ok. My app work correctly, except when I capture a module of vídeo. In this cases the result is wrongly. How you can see in this image of a video in youtube.com:
- http://img238.imageshack.us/img238/5626/capturaxq0.png


The static page is correctly captured, but the video in youtube no. Do you know what is the problem?

This is my code:

NSRect frame = [theView frame];
NSBitmapImageRep *rep = [theView bitmapImageRepForCachingDisplayInRect:frame];
[theView cacheDisplayInRect:frame toBitmapImageRep:rep];
NSData *data = [rep representationUsingType:NSTIFFFileType properties:nil];

NSImage *image = [[NSImage alloc] initWithSize:[rep size]];
[image addRepresentation:rep];
[but setImage:image];


Thanks for all

Xin_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Capture youtube image in webview
      • From: João Pavão <email@hidden>
    • Re: Capture youtube image in webview
      • From: Chris Ryland <email@hidden>
  • Prev by Date: Re: core data and IB outlet binding
  • Next by Date: Re: Xcode editor question
  • Previous by thread: Re: Can I record video in iPhone?
  • Next by thread: Re: Capture youtube image in webview
  • Index(es):
    • Date
    • Thread