Re: Accessing files in QT Cache
Re: Accessing files in QT Cache
- Subject: Re: Accessing files in QT Cache
- From: "douglas a. welton" <email@hidden>
- Date: Wed, 27 Dec 2006 14:48:20 -0500
Hi Matt,
Two things:
1) Did you take a look in ~/Library/Caches/your-application-name to
see if you had a movie laying around there?
2) Have you checked to see if one of the -subviews of the -
documentView of the -frameView of the mainFrame of your WebView is a
QTMovieView or something like that? In other word are any of the
views in
[[[[[Web_View mainFrame] frameView] documentView] subviews]
responsible for drawing the movie? If so, you should be able to get
the movie to save from there.
later,
douglas
On Dec 27, 2006, at 2:11 PM, Matt wrote:
I've read more documentation and searched through past mailing
lists than I ever cared to do trying to find answers on this one.....
I would simply like to be able to have direct access to a movie
file when played in a webview. I would like to be able to save
this file, but i can't figure out how to access it.
I have tried grabbing the data from the the webFrame (I'm using a
WebView from WebKit), but I only ever get a few kilobytes worth of
data. I have tried web archives and a few other different ways of
accessing the data. I can get a valid HTML document saved, but that
doesn't give me the video that I'm trying to access.
Since none of that worked I thought the problem must lie in either
the WebKit or QuickTime caches. My application's cache has
"cached" instances of all the URLRequests, but those are only about
4kb in size, not a real movie file. (I determined this by changing
the directory in the sample application "/Developer/Examples/WebKit/
DiskCacheInspector" and viewing the cache objects that way).
Safari's cache didn't hold any relevant information, so I assumed
the data was being cached by the QuickTime plugin and stored in
that cache. This seems to be the case as the "~/Library/Caches/
QuickTime/downloads/" directory is much larger in size than my
other caches, which are a usually less than 1mb total.
I read up on NSCachedURLResponse, NSURLCache, etc, but I'm not sure
if that really applies to the ".qtch" files that are in this cache
folder. I'm not able to access them. Ideally I would like to be
able to look in the webkit maintained history and if the URL is in
that list, search for the corresponding cached object in QT's
cache, being able to retrieve data from that object and save for
later if needed.
Does anyone have any suggestions?
Thanks,
Matt
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40earthlink.net
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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