Re: Of saving a QTMovie created from a NSURL and the resulting disappointments
Re: Of saving a QTMovie created from a NSURL and the resulting disappointments
- Subject: Re: Of saving a QTMovie created from a NSURL and the resulting disappointments
- From: "Michael Ash" <email@hidden>
- Date: Thu, 6 Jul 2006 22:54:55 -0400
On 7/6/06, Hari Seldon <email@hidden> wrote:
My question to you titans of code: Is there any way to save or access
the "raw" file that QTMovie so greedily holds? Barring that, would it
be possible to download the file myself (using the excellent WebKit)
and pass along chunks of data to a QTMovie? I'm at the proverbial end
of my wits. Thank you for reading my plea, and have an excellent
afternoon :)
I can't answer the first part of the question, but I can give a try at
the second part.
Writing a custom NSURLProtocol isn't all that difficult. It would be
possible to write one that just wraps a standard HTTP handler (or a
fancier one that can wrap any sort of URL), and then saves the
incoming data to a file or to memory while simultaneously forwarding
the data to the requesting object. You could then give an URL with
your custom scheme to QTMovie and, assuming it does everything kosher,
it would then invoke your custom NSURLProtocol which lets you get at
the raw data.
Obviously this is suboptimal, but if you're seeing the same results as
you see by doing "Save as Source..." then there probably isn't a way
to make the obvious technique work.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden