Re: Accessing files in QT Cache
Re: Accessing files in QT Cache
- Subject: Re: Accessing files in QT Cache
- From: Andrew Hromada <email@hidden>
- Date: Thu, 28 Dec 2006 01:06:27 -0500
The QuickTime Movie Download Cache (the one you select the size of in
the QuickTime System Preferences in the Browser tab) is located in "/
tmp/501" on the boot volume.
Warmest,
Andy
On Dec 27, 2006, at 4:03 PM, Matt wrote:
There isn't any useful movie data stored in my apps cache folder.
I grabbed an NSMovieView from the first object in the array
returned from -subviews and this looks like this will get me on my
way. I'm reading through how to get a savable QTMovie or the like
out of the view so I can write that to a file.
This still doesn't give me access to the cache, which would be a
lot more practical in the long run, but thanks for the help and
giving me another place to look.
Matt
On Dec 27, 2006, at 2:48 PM, douglas a. welton wrote:
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
_______________________________________________
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