Sun Microsystems J2ME manual ObexDemo, Attributes for mmademo

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 103
Image 103

Animated GIFs and video capture can be implemented using either a Form Item or a Canvas. The Video demonstration includes all the possibilities:

Animated GIF - Form [jar] shows an animated GIF as a Form Item. The form also includes some information about the playback, including the current time. Choose the Snapshot command to take a snapshot of the running animation. The snapshot will be placed in the form following the animated GIF.

Animated GIF - Canvas [jar] shows an animated GIF in a Canvas. A simple indicator shows the progress through the animation. Choose Snapshot to get a still image of the current appearance. The snapshot is shown briefly, then the display goes back to the animation.

Video Capture - Form simulates capturing video from a camera or other source and showing it as an Item in a Form. Choose the Snapshot command to take a snapshot of the captured video. The snapshot will be placed in the form following the video capture.

Video Capture - Canvas simulates capturing video from a camera or other source and showing it in a Canvas. Choose Snapshot to get a still image of the current appearance. The snapshot is shown briefly, then the display goes back to the video capture.

A.6.5 Attributes for mmademo

The mmademo applications have the following attributes that you can modify in the User Defined tab of the project settings dialog box:

TABLE 11 Descriptions of MMAPI-specific MIDlet attributes

Attribute

Description

 

PlayerTitle-<n>Name of the nth media title to be played back by the Simple

 

Player MIDlet.

PlayerURL-<n>

Location of the nth media title, PlayerTitle-<n>, to be played

 

back by the Simple Player MIDlet.

VideoTest-<n>

The name of the nth media title to be played back by the Video

 

application.

VideoTest-

Location of the nth media title, VideoTest-<n>, to be played

URL<n>

back by the Video application.

 

 

A.7 ObexDemo

This application shows how to transfer image files between emulator instances using the OBEX API. This demonstration shows the use of OBEX over a simulated infrared connection.

Appendix A Application Demonstrations 91

Page 103
Image 103
Sun Microsystems J2ME manual ObexDemo, Attributes for mmademo, Descriptions of MMAPI-specific MIDlet attributes