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: QT Detection



come on! you can find this stuff yourself! now you're just getting lazy.

;)


> How can I detect if the user has QT / QT4J installed
> from my Java program?

quicktime.util.QTBuild
public static final void isValid()
This checks to see if the QTJava developer release versions (which time
out) are still valid. It this version has timed out then a security
exception will be thrown, otherwise this returns.
The call can also be used as a means of establishing whether the QTJava
classes can be found by the system - the call can be made without the
application having called QTSession.open.

public static java.lang.String info()
This returns an info string about the current version/build of QTJava

> I probably want to "gray out" the QT export menuItem
> on my program if QT is not installed, but I still want the
> rest of the program to work.

> Also, is there any method in QT4J which provides some
> copy protection on the movie or an individual track, etc?
> Maybe something that would prevent you from editing the
> Movie in QTPlayer or some other video application?

uh, yeah there is a user data item you can set. read this :
http://developer.apple.com/technotes/tn/tn2038.html


References: 
 >Is it just me? (From: "Drew Lane" <email@hidden>)
 >Re: Is it just me? (From: "Ryan Francesconi" <email@hidden>)
 >Exporting (From: "Drew Lane" <email@hidden>)
 >Re: Exporting (From: "Ryan Francesconi" <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.