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: Quicktime Movies inside a Browser inside a Standalone Java application



> We built an application that has an html browser inside of it for
> displaying
> simple html pages. Our next use of this application involves html pages
> which contain both quicktime and imagemaps.
>
> Does anyone have any suggestions of how to implement an html browser which
> (inside a java application) will play a quicktime movie? Also,
> what would
> make an implementation such as this compatible with the html standards?
>
> I also have to support image maps, so any suggestions on this off-topic
> item, would also be much appreciated.

Java Swing package (which is part of Java 2) has support for displaying HTML
3.2 Documents. It includes limited support for <object> tag, as well as
image maps. Look at javax.swing.text.html documentation for more
information.

Generally, <object> tag's classid attribute is used to specify what java
class should be loaded by the API to dipslay the content. Here is an
example:

<object classid="javax.swing.JLabel">
<param name="text" value="sample text">
</object>


In your case I suppose you should create some class which is capable of
displaying QT Movies and extends (may be not directly) java.awt.Component.
So your HTML code will look somehow like this:

<object classid="com.acme.QuickTimePlayer"></object>



Simeon Kirov
KFM NET Inc.


References: 
 >Quicktime Movies inside a Browser inside a Standalone Java application (From: Laura Ferguson <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.