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:// and ending with a supported video file extension:

  • Correct locator: rtsp://somedomain/video.3gp

  • Incorrect locator: rtsp://somedomain/video

An RTSP network access point must be set from RealPlayer or Player.prefetch throws MediaException with the error code -39. RTSP connections always use the default access point set in RealPlayer. Depending on the product and operator configuration, a default access point may be set automatically. A 3G network connection is recommended to achieve smooth streaming.

The playable content types can be queried dynamically by calling Manager.getSupportedContentTypes("rtsp").

In some cases, the dimensions of the source video cannot be obtained for RTSP streams. In these cases, the default video display size (32x32 pixels) is used, and VideoControl.getSourceWidth and VideoControl.getSourceHeight will both return the value 32. The actual video image resolution is not affected, so the video can be rescaled to the desired size using VideoControl.setDisplaySize without loss in image quality.

The supported content types for RTSP are listed in section Content types.

The RTSP player automatically uses an existing Internet connection if one is already open.

Progressive playback

The Symbian platform supports progressive playback ("progressive download" or "HTTP streaming") from S60 3rd Edition FP 1 onwards. To create a Player for progressive playback, use the Manager.createPlayer method with the http:// media locator.

Contrary to RTSP streaming, a progressive playback network connection is not dependent on RealPlayer. Instead, the default Internet connection access point is used. If a default access point has not been set, then an access point selection dialog is presented. A 3G network connection is recommended to achieve smooth streaming.

Progressive playback is supported only for the following content types:

Content type

Supported since

audio/amr

S60 3rd Edition FP 1

audio/amr-wb

S60 3rd Edition FP 1

audio/aac

Symbian^3

audio/3gpp

Symbian^3

audio/3gpp2

Symbian^3

audio/mpeg

Symbian^3

audio/mp4

Symbian^3

audio/x-ms-wma

Symbian^3

audio/x-pn-realaudio

Symbian^3

With other types, the media data is downloaded completely before playing.

InputStream

Streaming from an InputStream is not supported. All the data available in an InputStream is consumed into a buffer before a player is created.