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: enMovieFile Sharing Violation



I think that maybe you're missing some 'disposeQTObject()' and some '= null' on these objects.

Also, maybe you can use the 'deleteOnClose()' method as well.


Best,

Daniel Giribet


------------------------------------------------------------------------

Subject:
OpenMovieFile Sharing Violation
From:
"Justin McAllister" <email@hidden>
Date:
Fri, 30 Sep 2005 09:19:24 -0500
To:
<email@hidden>

To:
<email@hidden>


Hi,

I am opening a movie files to read various information from them
(codec's, duration etc.) and then I am deleting them when I am done. The
problem I am having is that QTJava is not releasing it's handle on the
file right away and this is causing a sharing violation and not allowing
me to delete the file. The code I am using looks like the following:



File file = new File("c:/somefile.mov");

QTSession.open();

QTFile qtFile = new QTFile(file);

OpenMovieFile openMovieFile = OpenMovieFile.asRead(qtFile);

openMovieFile.close(); //I don't know if this is nessesarry

QTSession.close();

System.out.println("File Deleted=" + file.delete());





Any help would be appreciated,



Thanks in advance,

Justin McAllister





------------------------------------------------------------------------

Subject:
limit playback
From:
Paul Loy <email@hidden>
Date:
Fri, 30 Sep 2005 16:28:28 +0100
To:
email@hidden

To:
email@hidden


Hi all,

I'm trying to limit playback between two frames, like 0 and 156. I'm trying
to use the setPlaySelection, setSelectionStart and setSelectionDuration of
the MovieController class but am finding it hard to know what to send the
TimeRecord to get it to limit correctly.

I've tried the following:

mc.setSelectionStart(new TimeRecord(mc.getTimeScale(), frameIn);
mc.setSelectionDuration(new TimeRecord(mc.getTimeScale(), frameOut-frameIn);

which doesn't set it to the right values, so I thought it was probably
because we need to multiply the frames by the timescale:

mc.setSelectionStart(new TimeRecord(mc.getTimeScale(), frameIn*
mc.getTimeScale());
mc.setSelectionDuration(new TimeRecord(mc.getTimeScale(),
(frameOut-frameIn)*mc.getTimeScale());

but again, this does not give the correct timespan!

Any help??

Cheers, Paul.


-- --------------------------------------------- Paul Loy, email@hidden



------------------------------------------------------------------------

_______________________________________________
QuickTime-java mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/quicktime-java

_______________________________________________
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.