| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
> The main
problem with our program is that it is using the Swing display option rather
than AWT (as used by Duke Movie), which seems to give a large performance
hit.
The lightweight
display option suffers a massive performance hit unfortunately.
I have, however, had no trouble using an AWT component just for the
movie player with lightweight Swing components everywhere else. I know
it is not recommended but I had no option and, having combined the two in the
past, I was fairly confident that I could pull it off. The only workarounds
I have needed to employ are using 'lightweightPopupEnabled' on menus and
tooltips otherwise they can disappear below the heavyweight
component and I also needed to implement a WindowAdapter to invoke a
'movie.setActive(true); movie.task(0); setVisible(true); pack() combination on a
'windowDeiconified' event and a 'movie.setActive(false)' on a 'windowIconified'
event. If I don't override these WindowAdapter events then the
heavyweight player shows white space (i.e. no movie) after minimising and
maximising the parent JFrame.
Just to give
you some idea of the amount of Swing I am using - my application
comprises a JFrame containing a JMenu, JSplitPanes,
JTabbedPanes, JTrees, JToolBar, JTables and JDialogs.
The heavyweight QTComponent is embedded in a JPanel among all of these
lightweight components. It smoothly renders 2.5 Gb files of
mpeg4-encoded Australian Rules Football (typically around 3200kb/s at
25fps) and is in heavy daily use.
Obviously you will not be able to use a heavyweight movie player if
you are using an MDI format with InternalFrames.
I also found
that rendering a movie via SMIL hampered performance too much even with the
heavyweight movie player. This may have been due to some implementation
issues though. Hope this helps.
GREG
--
Greg Ewing Software Engineer Champion Data Suite 4, 51 City Road Southbank 3006 Victoria Australia P: 61 3 9693 1333 W: www.championdata.com.au E: email@hidden |
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.