<s>
QuickTime	B-Language
for	I-Language
Java	I-Language
or	O
QTJ	B-Language
is	O
a	O
software	B-Library
library	I-Library
that	O
allows	O
software	O
written	O
in	O
the	O
Java	B-Language
programming	I-Language
language	I-Language
to	O
provide	O
multimedia	O
functionality	O
,	O
by	O
making	O
calls	O
into	O
the	O
native	O
QuickTime	B-Application
library	O
.	O
</s>
<s>
In	O
practice	O
,	O
it	O
allows	O
Java	B-Language
applications	O
on	O
Mac	B-Application
OS	I-Application
,	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
and	O
Microsoft	B-Application
Windows	I-Application
to	O
support	O
the	O
capture	O
,	O
editing	O
,	O
playback	O
,	O
and	O
export	O
of	O
many	O
different	O
media	O
formats	O
and	O
codecs	B-General_Concept
.	O
</s>
<s>
QTJ	B-Language
has	O
been	O
deprecated	O
by	O
Apple	O
.	O
</s>
<s>
Owen	O
W	O
.	O
Linzmayer	O
,	O
in	O
Apple	O
Confidential	O
2.0	O
,	O
traces	O
QuickTime	B-Language
for	I-Language
Java	I-Language
's	O
genesis	O
back	O
to	O
Kaleida	O
Labs	O
,	O
a	O
spin-off	O
company	O
created	O
by	O
Apple	O
Computer	O
and	O
IBM	O
,	O
noting	O
that	O
it	O
and	O
some	O
Unicode	O
text	O
classes	O
were	O
the	O
only	O
Mac	O
software	O
salvaged	O
from	O
the	O
four-year	O
,	O
$150	O
million	O
disaster	O
.	O
</s>
<s>
Ported	O
to	O
the	O
Mac	B-Application
OS	I-Application
,	O
it	O
was	O
developed	O
under	O
the	O
code-name	O
"	O
Biscotti	O
"	O
,	O
and	O
first	O
released	O
as	O
a	O
public	O
beta	O
in	O
1999	O
.	O
</s>
<s>
Later	O
versions	O
were	O
installed	O
by	O
default	O
with	O
Mac	B-Application
OS	I-Application
and	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
,	O
and	O
were	O
an	O
optional	O
part	O
of	O
the	O
QuickTime	B-Application
install	O
for	O
Windows	O
.	O
</s>
<s>
In	O
2003	O
,	O
Apple	O
issued	O
a	O
Java	B-Language
1.4.1	O
implementation	O
that	O
broke	O
any	O
QTJ	B-Language
applications	O
that	O
tried	O
to	O
run	O
under	O
1.4.1	O
on	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
.	O
</s>
<s>
The	O
underlying	O
problem	O
was	O
Apple	O
's	O
move	O
from	O
Carbon	B-Operating_System
to	O
Cocoa	B-Operating_System
for	O
their	O
AWT	B-Language
implementation	O
,	O
and	O
the	O
removal	O
of	O
a	O
Java-to-native	O
library	O
called	O
"	O
JDirect	O
"	O
that	O
QTJ	B-Language
relied	O
on	O
.	O
</s>
<s>
QTJ	B-Language
applications	O
could	O
still	O
run	O
under	O
Java	B-Language
1.3.1	O
,	O
but	O
apps	O
that	O
did	O
not	O
specify	O
the	O
version	O
of	O
Java	B-Language
they	O
required	O
,	O
or	O
that	O
needed	O
1.4	O
features	O
,	O
were	O
rendered	O
unusable	O
.	O
</s>
<s>
Later	O
that	O
year	O
,	O
Apple	O
released	O
a	O
new	O
version	O
of	O
QTJ	B-Language
that	O
dealt	O
with	O
the	O
incompatibilities	O
,	O
by	O
offering	O
a	O
compatible	O
but	O
scaled-down	O
version	O
of	O
the	O
GUI	O
classes	O
.	O
</s>
<s>
This	O
6.1	O
version	O
of	O
QTJ	B-Language
also	O
radically	O
changed	O
the	O
API	O
,	O
so	O
that	O
instead	O
of	O
having	O
developers	O
create	O
GUI	O
components	O
and	O
associate	O
Movies	O
or	O
other	O
renderable	O
objects	O
with	O
them	O
,	O
the	O
developers	O
now	O
needed	O
to	O
start	O
with	O
the	O
Movie	O
and	O
request	O
a	O
suitable	O
component	O
from	O
a	O
factory	O
.	O
</s>
<s>
The	O
new	O
version	O
also	O
neglected	O
to	O
provide	O
a	O
component	O
to	O
show	O
a	O
visual	O
preview	O
of	O
the	O
input	O
from	O
a	O
capture	O
device	O
,	O
such	O
as	O
a	O
webcam	B-Protocol
or	O
camcorder	O
.	O
</s>
<s>
QTJ	B-Language
lays	O
an	O
object-oriented	B-Language
API	O
on	O
top	O
of	O
the	O
native	O
C-based	O
QuickTime	B-Application
library	O
.	O
</s>
<s>
For	O
example	O
,	O
the	O
Movie	O
struct	O
is	O
the	O
basis	O
of	O
the	O
class	O
quicktime.std.movies.Movie	O
,	O
with	O
functions	O
like	O
NewMovieFromFile	O
and	O
GetMovieTrackCount	O
becoming	O
the	O
instance	O
methods	O
fromFile( )	O
and	O
getTrackCount( )	O
respectively	O
.	O
</s>
<s>
The	O
result	O
is	O
more	O
like	O
a	O
genuine	O
object-oriented	B-Language
API	O
than	O
other	O
C-to-Java	O
adaptations	O
(	O
such	O
as	O
JOGL	B-Language
,	O
which	O
dumps	O
the	O
OpenGL	O
header	B-Language
files	I-Language
into	O
classes	O
with	O
thousands	O
of	O
static	O
methods	O
)	O
.	O
</s>
<s>
The	O
Cocoa-based	O
QTKit	B-Operating_System
is	O
a	O
similar	O
attempt	O
to	O
put	O
an	O
object-oriented	B-Language
layer	O
atop	O
the	O
procedural	O
QuickTime	B-Application
library	O
,	O
using	O
Objective-C	B-Language
.	O
</s>
<s>
Apple	O
's	O
use	O
of	O
the	O
top-level	O
package	B-Language
name	O
quicktime	B-Application
violates	O
the	O
Java	B-Language
Language	I-Language
's	O
Specification	O
convention	O
that	O
packages	O
use	O
a	O
reverse-domain-name	O
scheme	O
,	O
such	O
as	O
com.apple.quicktime	O
.	O
</s>
<s>
However	O
,	O
as	O
Apple	O
owns	O
the	O
"	O
QuickTime	B-Application
"	O
trademark	O
,	O
there	O
is	O
no	O
realistic	O
chance	O
of	O
a	O
namespace	O
collision	O
,	O
the	O
prevention	O
of	O
which	O
is	O
the	O
purpose	O
of	O
the	O
package	B-Language
naming	O
convention	O
.	O
</s>
<s>
It	O
is	O
important	O
to	O
remember	O
that	O
QTJ	B-Language
is	O
not	O
a	O
Java	B-Language
implementation	O
of	O
QuickTime	B-Application
,	O
it	O
is	O
a	O
Java	B-Language
wrapper	O
around	O
native	O
QuickTime	B-Application
calls	O
.	O
</s>
<s>
For	O
this	O
reason	O
,	O
it	O
can	O
only	O
run	O
on	O
systems	O
that	O
have	O
the	O
QuickTime	B-Application
libraries	O
installed	O
,	O
namely	O
the	O
classic	B-Application
Mac	I-Application
OS	I-Application
(	O
which	O
is	O
no	O
longer	O
supported	O
)	O
,	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
,	O
and	O
Windows	O
.	O
</s>
<s>
As	O
a	O
wrapper	O
around	O
QuickTime	B-Application
,	O
QTJ	B-Language
also	O
inherits	O
support	O
for	O
a	O
vast	O
collection	O
of	O
media	O
formats	O
and	O
codecs	B-General_Concept
,	O
including	O
MPEG-1	B-Algorithm
,	O
MPEG-4	B-Algorithm
,	O
H.264	B-Application
,	O
AAC	B-Application
,	O
Sorenson	O
Video	O
,	O
Flash	B-Operating_System
,	O
3GPP	O
,	O
WAV	O
,	O
AIFF	O
,	O
and	O
more	O
.	O
</s>
<s>
Since	O
QuickTime	B-Application
itself	O
can	O
be	O
extended	O
,	O
QTJ	B-Language
can	O
pick	O
up	O
support	O
for	O
formats	O
such	O
as	O
DivX	B-Application
and	O
Ogg	B-Algorithm
Vorbis	I-Algorithm
through	O
the	O
use	O
of	O
third-party	O
QuickTime	B-Application
components	O
.	O
</s>
<s>
The	O
following	O
example	O
shows	O
an	O
AWT	B-Language
file-selection	O
dialog	O
and	O
then	O
tries	O
to	O
import	O
and	O
play	O
the	O
selected	O
media	O
file	O
.	O
</s>
<s>
The	O
only	O
calls	O
to	O
QTJ	B-Language
are	O
the	O
calls	O
to	O
OpenMovieFile.asRead( )	O
and	O
Movie.fromFile( )	O
,	O
which	O
create	O
a	O
QuickTime	B-Application
movie	O
from	O
the	O
specified	O
file	O
,	O
and	O
the	O
calls	O
to	O
create	O
an	O
AWT	B-Language
component	O
from	O
the	O
QTFactory	O
.	O
</s>
<s>
QTJ	B-Language
's	O
acceptance	O
is	O
limited	O
by	O
its	O
nature	O
as	O
a	O
wrapper	O
around	O
Apple	O
's	O
proprietary	O
QuickTime	B-Application
library	O
.	O
</s>
<s>
It	O
does	O
not	O
exist	O
for	O
any	O
platform	O
other	O
than	O
Mac	O
and	O
Windows	O
,	O
and	O
cannot	O
until	O
and	O
unless	O
Apple	O
ports	O
QuickTime	B-Application
to	O
another	O
platform	O
,	O
such	O
as	O
Linux	O
.	O
</s>
<s>
Currently	O
most	O
of	O
QTJ	B-Language
is	O
broken	O
on	O
recent	O
Windows-running	O
computers	O
.	O
</s>
<s>
This	O
can	O
be	O
easily	O
verified	O
by	O
a	O
developer	O
via	O
a	O
test-run	O
of	O
one	O
of	O
the	O
demos	O
coming	O
with	O
QTJ	B-Language
.	O
</s>
<s>
This	O
renders	O
QTJ	B-Language
unsuitable	O
for	O
end-user	O
application	O
development	O
due	O
to	O
the	O
necessary	O
complicated	O
configuration	O
of	O
the	O
NX	O
feature	O
.	O
</s>
<s>
Following	O
the	O
2003	O
release	O
of	O
QTJ	B-Language
6.1	O
,	O
Apple	O
has	O
made	O
few	O
updates	O
to	O
QTJ	B-Language
,	O
mostly	O
fixing	O
bugs	O
.	O
</s>
<s>
Notably	O
,	O
QuickTime	B-Application
7	I-Application
was	O
the	O
first	O
version	O
of	O
QuickTime	B-Application
not	O
to	O
be	O
accompanied	O
or	O
followed	O
by	O
a	O
QTJ	B-Language
release	O
that	O
wrapped	O
the	O
new	O
native	O
API	O
's	O
.	O
</s>
<s>
QuickTime	B-Application
7	I-Application
's	O
new	O
API	O
's	O
,	O
such	O
as	O
those	O
for	O
working	O
with	O
metadata	O
and	O
with	O
frame-reordering	O
codecs	B-General_Concept
,	O
are	O
not	O
available	O
to	O
QTJ	B-Language
programmers	O
.	O
</s>
<s>
Apple	O
has	O
also	O
not	O
offered	O
new	O
classes	O
to	O
provide	O
the	O
capture	O
preview	O
functionality	O
that	O
was	O
present	O
in	O
versions	O
of	O
QTJ	B-Language
prior	O
to	O
6.1	O
.	O
</s>
<s>
Indeed	O
,	O
QTJ	B-Language
is	O
dependent	O
on	O
some	O
native	O
API	O
's	O
that	O
Apple	O
no	O
longer	O
recommends	O
,	O
most	O
notably	O
QuickDraw	B-Operating_System
.	O
</s>
