Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Problem with fromDataFork method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with fromDataFork method




I've had this exact same problem recently. Has anyone used the Movie.fromDataFork() method with valid offset parameters with sucess? I am testing on Windows qt 6.5


ryan francesconi.


On Jun 21, 2005, at 1:21 PM, Venkatesh Moodliar wrote:


Hello,

I'm trying to create a movie using the fromDataFork() method as follows:

    public static Movie createMovie( File file ) throws QTException
{
        QTFile path = new QTFile( file );
        Movie m = null;
        OpenFile of = OpenFile.asRead( path );
        m = Movie.fromDataFork( of, 2, 0, null );
        m.setActive( true );

    }

The first 2 bytes are left on purpose because it carries data that is
not related to the movie. The problem I'm having is that the movie is
recognized as the QT movie however it plays with the blank screen. The
screen is adjusted according to the aspect ratio but there is no
picture. If the two bytes worth of data is removed from the mov file and
the above code is modified to indicate a zero offset as:


public static Movie createMovie( File file ) throws QTException {
        QTFile path = new QTFile( file );
        Movie m = null;
        OpenFile of = OpenFile.asRead( path );
        m = Movie.fromDataFork( of, 0, 0, null );
        m.setActive( true );

}
The movie plays fine with the correct aspect ratio and the screen is not
blank. I don't know what is wrong with the usage. Is there anything that
can be done to adjust the offset? Your help is greatly appreciated.


-Venkatesh

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40are-f.com


This email sent to email@hidden




_______________________________________________
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: 
 >Problem with fromDataFork method (From: "Venkatesh Moodliar" <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.