Mailing Lists: Apple Mailing Lists

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

Opening movie with Unicode filename



Hi,

Is there any way (from Java) of opening a Movie where the filename contains accented or foreign language Unicode characters?

The standard method of opening a movie I use is

    QTFile qtf = new QTFile(...);
    OpenMovieFile openFile = OpenMovieFile.asRead(qtf);
    Movie movie = Movie.fromFile(openFile);

this throws a -43 fnfError if the filename contains foreign characters.

I have also tried
Movie movie = Movie.fromDataRef( new DataRef(qtf) );
and
Movie movie = Movie.fromDataRef( new DataRef("file://"+qtf.getPath() );
but both of these throw -2012 invalidDataRef. All three methods work for simple all-ASCII filenames.


Internally I believe the first method above still uses FSSpecs which is why it doesn't work, but surely this problem has been solved and QuickTime 7 gives me some way of opening these files??

-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-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/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.