This example MIDlet shows you how to use the Mobile Media API (MMAPI) to play audio and video. In addition, the MIDlet shows you how to check MMAPI and media support on the device by using system properties.
Figure: MediaSampler MIDlet running on a Nokia Asha software platform device
For a tutorial that shows you how to create this MIDlet, see section Example: Creating a multimedia player.
This MIDlet is compatible with Java Runtime for Nokia Asha software platform (1.0) for Nokia Asha software platform devices and Series 40 3rd Edition Feature Pack 2 devices and newer.
This MIDlet has been tested on the following devices:
Nokia Asha 305 on Nokia Asha software platform (Java Runtime 2.0.0 for Series 40)
Nokia X3-02 (Series 40 6th Edition Feature Pack 1)
The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:
The MIDlet consists of the following packages and classes (click to view the full source code):
com.nokia.example.mmapi.mediasampler
com.nokia.example.mmapi.mediasampler.data
com.nokia.example.mmapi.mediasampler.model
com.nokia.example.mmapi.mediasampler.viewer