HotMedia Support

 

JMF Documentation


JMF 2.1.1 supports HotMedia 2.0 content in two ways:

  • By enabling faster download of HotMedia 2.0 content from web sites. All of the components needed to view HotMedia 2.0 objects (such as animations and panoramas) are bundled with JMF. Users viewing HotMedia content only have to download HotMedia's initial applet, which reduces the start latency. This support is seamless and does not require any additional configuration.
     
  • By providing a standalone Player for HotMedia content. This Player enables developers to write applications and applets that present HotMedia 2.0 (MVR) content. The Player is constructed through the standard JMF Manager factory mechanism.

Viewing Web sites with HotMedia 2.0 Content

With JMF installed, a user viewing a web site that contains HotMedia 2.0 content will experience a shorter delay in starting the presentation of the content. This is achieved by bundling the HotMedia 2.0 components with JMF, which eliminates the need to download them each time. Any new HotMedia components encountered on a server but not installed on the client are automatically downloaded and used by JMF. (Such components are only used for the current session; they are not permanently installed.)
 

Using the HotMedia 2.0 JMF Player

JMF 2.1.1 provides a standard Player that supports HotMedia 2.0 content. This Player is constructed through the standard JMF Manager factory mechanism. The HotMedia Player provides HotMedia's standard GUI as its ControlPanelComponent. It also exposes two additional Event objects and one custom Control.

HotMedia Player Events

  • com.ibm.media.ReplaceURLEvent

  • This event indicates that a hot link to a new MVR file has occurred. The new MVR file name can be retreived by calling getURL on the ReplaceURLEvent. You are responsible for responding to the event and creating a new HotMedia Player for the new file. You can choose what to do with the old Player--for example, you might continue playing or stop playback and destroy the Player.
     
  • com.ibm.media.ShowDocumentEvent

  • This event indicates that a hot link to an HTML page has occurred. The page's URL can be retreived by calling getURL on the ShowDocumentEvent. You are responsible for responding to the event andopening a browser to display the HTML page. For an applet, you can get the context in which the HTML should be displayed (sameframe, new window, etc.) by calling getString on theevent, which returns the associated context string.

HotMedia Player Controls

com.ibm.media.controls.ParametersControl is a custom Control exposed by a HotMedia Player. This Control enables you to set external parameters using the set method. These external parameters are usually set via the HTML's applet parameters. For more information about the HotMedia parameters, see the HotMedia documentation on the IBM web site.