Capture locators

The Mobile Media API implementation supports audio and video recording. You cannot take a photo from a capture://video locator in the Series 40 implementation.

Audio recorder

The capture://audio locator is used for audio recording.

The audio recorder is created with a "capture://audio" locator. The supported encoding types are listed in the property "audio.encodings".

Video recorder

The video recorder is created with a "capture://video" locator. In Series 40, if the width and height do not match a supported size, the closest match is used instead. Other sizes can be supported depending on the platform version and product. For further information, see Audio and Video at Forum Nokia.

The supported video capture encoding types are listed in the property "video.encodings".

VideoControl

If the video control's display mode is set to USE_DIRECT_VIDEO, the second parameter of method initDisplayMode can be any class derived from Canvas (or GameCanvas or FullCanvas). In Canvas, the video is drawn on top of all other drawings.

In method setDisplaySize, if the requested display size is different from the dimensions of the video clip, the image is scaled to fit.

The method setDisplayFullScreen(true) is supported for both Canvas and FullCanvas; in Canvas it only sets the display to the whole Canvas, not the whole screen.

Still image capture

The Series 40 implementation supports the locator capture://image.

The property for determining supported formats for image capture is “video.snapshot.encodings”.

RTSP Streaming Protocol

The implementation supports Real Time Streaming Protocol (RTSP). RTSP player can be created by using the Manager.createPlayer method with the locator starting "rtsp://". A 3G network connection is recommended to achieve smooth streaming.

An RTSP network access point must be set from the media player or an exception is thrown.

The playable content types can be queried dynamically by calling Manager.getSupportedContentTypes("rtsp"). The supported content types for RTSP are listed in the section Player Content Types and MMAPI Controls.

Video formats that are supported by JSR-135 are also supported over RTSP.