Streaming

RTSP streaming

The implementation supports Real Time Streaming Protocol (RTSP). An RTSP player is created using the Manager.createPlayer method with the locator starting with 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 section Supported content types.

Progressive playback

Progressive playback ("progressive download" or "HTTP streaming") is a method for downloading media over the Internet where the media player can begin playback before the download is complete. Unlike streaming media, progressive playback does not support adapting the download to the client's needs, such as available bandwidth or media quality preferences. In progressive playback, a media file is downloaded as fast as possible in its original format, and playback begins as soon as there is sufficient data available for playback.

The Series 40 platform supports progressive playback for audio from 3rd edition, Feature Pack 2 onwards and for video from 5th Edition onwards. The supported content types for progressive playback are listed in section Supported content types.

To create a Player for progressive playback, use the Manager.createPlayer method with one of the following media locators:

  • http://

  • resource://

Progressive playback can also be used with Players created from an InputStream or DataSource.

In addition, for progressive playback to work in your MIDlet, do one of the following:

  • Add the following attribute to the MIDlet's JAD file:

    progressive_download: enabled

  • Create the Player using a media locator that contains the streamable parameter set to true. For example:

    http://my_media_file.mp3?streamable=true

    resource://my_media_file.mp3?streamable=true

Note: Progressive playback is ignored for Players that use the file:// locator, since the data is wholly available and does not need to be streamed before playback.

Progressive playback does not support metadata.

For more information about using InputStream, see Playing large audio files by using InputStream throws an OutOfMemoryError on Forum Nokia.

Progressive recording

Progressive recording works like progressive playback, expect that data is progressively uploaded (recorded) rather than downloaded and only audio recording is supported. Progressive recording is always enabled when creating a Player for recording audio. To create the Player, use the Manager.createPlayer method with the media locator capture://audio.

The Series 40 platform supports progressive recording from 5th Edition onwards. Progressive recording is supported for all audio content types supported by the platform. The supported content types are listed in section Supported content types.