IBM MPEG-4 Multimedia Applet Player IBM MPEG-4 Technologies
IBM MPEG-4 Technologies
Overview
Parameters
Scripting

Overview

The IBM MPEG-4 Multimedia Applet Player is designed to play a variety of MPEG-4 multimedia content and can be used wherever an applet is supported.

A list of supported media types and format can be found in the documentation accompanying the applet. Various applet packages can be/are built and are targeted for particular media types and formats. This targeting is to have size optimized packages which minimizes any download time.

M4Applet

The above image is taken from a web page of our MPEG-4 demo content which can be found at http://www.research.ibm.com/mpeg4/Demos/VideoAudio/Hosting-cif.htm. It shows the applet, coded inside a table to generate the raised border, using the Basic control panel to allow a user to start and stop the content playback. The applet markup used for this, is shown here as an example, and is as follows:

    <table border="6" cellpadding="0" cellspacing="0" bgcolor="#f0f0ff">
      <tr><td><applet width="352" height="310"
               code="M4Applet.class" codebase="../M4Applet"
               id="m4player" name="m4player" alt="IBM MPEG4 Applet"
               archive="M4Applet.jar">
                 <param name="CABBASE"      value="M4Applet.cab">
                 <param name="url"          value="Hosting-cif.mv4">
                 <param name="panel"        value="basic">
                 <param name="panelBGColor" value="#ededff">
                 <param name="atDuration"   value="Stop">
         </applet></td></tr>
    </table>  

In the above example the applet is sized to 352x310; the content is known to be 352x288 and an additional 22 pixels have been added to the height to accomodate the basic control panel which has been selected. The content given by the url param is "Hosting-cif.mv4" and it is located in the same folder as the html. The basic control panel, selected by the panel param, also has a background color specified by panelBGColor param for it. The content playback is also to be Stopped when it reaches the defined content duration and this behavior is configured through the atDuration param.


Use of the applet to play MPEG-4 content is now fully described in the following sections.

1. Parameters

The IBM MPEG-4 Multimedia Applet Player, in addition to the standard applet attributes such as width and codebase, supports a number of Parameters, coded as name/value pairs, allowing the applet and the content playback to be customized.

2. Scripting

The IBM MPEG-4 Multimedia Applet Player supports an external Scripting interface. This allows the applet player to be controlled from say JavaScript embedded in a web page. In this manner external control interfaces, such as start and stop buttons can be created.


  IBM Home | Research Home | MPEG-4 Technologies | alphaWorks | © Copyright IBM Corp. 1998, 2006. All Rights Reserved.