Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QT4J - exporting user setting



All,
I am trying to store preset export settings using some very simple code
provided by Chris Adamson.

movie.convertToFile (null,
	saveFile,
	StdQTConstants.kQTFileTypeMovie,
	StdQTConstants.kMoviePlayer,
	IOConstants.smSystemScript,
	StdQTConstants.showUserSettingsDialog |
	StdQTConstants.movieToFileOnlyExport |
	StdQTConstants.movieFileSpecValid,
	exporter);

AtomContainer userSettings = exporter.getExportSettingsFromAtomContainer();
FileOutputStream fos = new FileOutputStream("c:\\tmp\\qtobjs\\qtexp.obj");
fos.write(userSettings.getBytes());


The problem with this approach is one of the values stored in the
serialized object is the name and location of the resultant exported file.
 I would like to store the encoder settings but choose the name and
location every time I call "convertToFile()".

1) Does anyone have any suggestions about how I can get around my problem?
2) Ideally, I am looking for a way to pass in pre-defined exporter
settings without going this serialization/deserialization.  From what I
understand this is NOT possible at this point in time with QT4J. True?

Thanks in advance,
Peentoo



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.