Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Serializable Movie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serializable Movie



At 11:26 am -0700 21/6/05, Nicholas R. Rinard wrote:
I am attempting to cache instances of quicktime.std.movies.Movie in an app-internal HSQLDB database but quicktime.std.movies.Movie does not implement serializable.

What is the easiest way to get a quicktime.std.movies.Movie into a serializable form?

I found the QTByteObject class, and its subclasses, but I don't know if that's the solution to my problem, lest how to leverage it.

All a quicktime.std.movies.Movie is (essentially) is a pointer to an opaque in-memory data structure, allocated and freed by native code. It's completely meaningless to serialize that pointer, and it's probably just as meaningless to serialize the structure itself (assuming you could) as its contents no doubt depend on all sorts of runtime state (pointers to other buffers, current window it's being displayed in, etc.).


Why not just serialize the filename you opened the movie from and re-open it when you need to load it? Or if the movie has been edited in memory then save it to disk.

-Rolf
--
Rolf Howarth
Square Box Systems Ltd
Stratford-upon-Avon UK.
http://www.squarebox.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Serializable Movie (From: "Nicholas R. Rinard" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.