| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
-Rolf
Is there any documentation on what kind of DataRef the URLDataHandlerSubType can cope with? Presumably rtsp and http protocols, but does it support "file:" URLs? Assuming it does support the file: protocol, what form does it expect the URL to be in? The data ref is a null-terminated C string I believe, but with what character encoding? Is it UTF-8?
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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.