ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Making Media from Scratch, Part 2
Subject:   Is it still possible to write to QTJava from java on the Mac?
Date:   2004-09-25 10:53:52
From:   invalidname
Response to: Is it still possible to write to QTJava from java on the Mac?

No, the QTImageDrawer was part of a sprite-driven live compositing API that was kind of a "bonus" provided to QTJ developers and was not re-created in QTJ 6.1 after OSX Java 1.4 broke it.


Some workarounds: 1. use the Swing-based QTJComponent and put it in a JLayeredPane to draw on top of the movie, 2. set up a MovieDrawingComplete object to draw on top of each rendered frame (icky: you have to use QuickDraw calls and it ends up flickery anyways), 3. add a new video track to your movie, draw raw frames (samples) with QuickDraw commands, and use setLayer() and GraphicsModes to put it on top of the existing video track, 4. same as 3, but with sprites [kind of re-creating the QTImageDrawer]


--Chris