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: Looking for example code...



On Fri, 31 Jan 2003 22:23:35 +1100, dean perry <email@hidden> wrote:

Message: 3
Date: Fri, 31 Jan 2003 22:23:35 +1100
Subject: Re: Looking for example code...
Cc: quicktime-java-list <email@hidden>
To: Prem Subrahmanyam <email@hidden>
From: dean perry <email@hidden>

On Friday, Jan 31, 2003, at 20:02 Australia/Melbourne, Prem
Subrahmanyam wrote:

2. In a rectangle within this image, play back a quicktime
movie without any of the playback controls visible...the movie
plays back based on clicking on some sort of canvas-type control
(with its own background image).

look at the QTPlayer and MovieController classes - I think there is an
example that uses a hidden movie controller - that's all you need to
do...

There's an example of a "detached" controller at http://developer.apple.com/techpubs/quicktime/qtdevdocs/Java/ tp_java_digest-33.htm , don't know if that's the example you're thinking of...

I think another, perhaps simpler, option would be to use a MoviePlayer rather than a QTPlayer as the client to the QTCanvas. See the PlayMovie demo in the SDK.

The original part 1 of the question, putting the movie inside an image, could probably be done just with AWT (BorderLayout with parts of the image around the movie, movie in BorderLayout.CENTER) or maybe swing (JLayeredPane?). Could also do it entirely with QuickTime by using a Compositor to combine the graphic and the movie offscreen, but that seems like unecessarily heavy lifting.

Depending on the original poster's needs, maybe an applet and QTJ aren't even necessary? If you just want the movie inside the graphic and playable by some other clicks somewhere, it might be possible with just DHTML (I _think_ you can start an <EMBED>-ed QT movie with javascript).

--Chris
_______________________________________________
quicktime-java mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-java
Do not post admin requests to the list. They will be ignored.



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.