WebView viewing video files, how to save locally
WebView viewing video files, how to save locally
- Subject: WebView viewing video files, how to save locally
- From: Matt <email@hidden>
- Date: Sat, 23 Dec 2006 16:03:25 -0500
Continuing with my webkit based project, I wanted to give the user
the option to save a webpage to the hard drive. I read up on the
documentation and saw code like:
NSWebArchive *archive = [[[webView mainFrame] dataSource] webArchive];
That's all fine and wonderful, I worked to get NSData and save it to
a file. All is lovely most of the time. However, when a user comes
across a video file, such as just an mpg, trying to save as a
webarchive or just grabbing the raw data and writing to file, it all
yields useless stuff. (like 12kb)
So, I'm assuming that because webView is just using the QT plugin,
that I will need to talk with QT somehow and get the data that way.
Anyone have any suggestions for getting the data so that I could just
save a mpg file to disk as that? Maybe accessing the QT/browser cache?
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:
This email sent to email@hidden