Mailing Lists: Apple Mailing Lists

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

Re: MovieExporter.toFile fnferr



2005-02-04 kl. 18.51 skrev Ron Stanonik:

Hi,

I trying to modify SimpleMovieExporter from the "QuickTime for Java:
Developer's Notebook" to not prompt the user for the output file
information.  I keep getting fnferr from MovieExporter.toFile when I
pass it a QTFile I create.

saveFile = new QTFile("C:/test.mov") fails. It makes no sense to get

Hi Ron.

You need to specify the path in a platform specific way.

saveFile = new QTFile("C:\\test.mov"); // should do the trick

This is of course provided that you are on a Windows machine
(seems like a good guess). If MacOS X is your current platform
you need to remove the ':' from the file name.

The static String java.io.File.separator is your friend when
you want to construct platform independent path names.
The "C:" part pretty much locks you down to the Windows world
in this case though.

    /// Isak Styf

_______________________________________________
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
References: 
 >MovieExporter.toFile fnferr (From: Ron Stanonik <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.