Streaming

RTSP streaming

The implementation supports Real Time Streaming Protocol (RTSP). RTSP player can be created by 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

A 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 Real Player. 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 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/getSourceHeight will both return the value 32. The actual video image resolution is not affected, so the video can be rescaled to desired size using VideoControl.setDisplaySize without loss in image quality.

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

RTSP streaming player automatically uses existing Internet connection if a connection is already open.

HTTP streaming

The S60 platform supports HTTP streaming from S60 3rd Edition FP 1 onwards. The streaming player is created using the Manager.createPlayer method with the locator starting http://.

Contrary to RTSP streaming, a HTTP streaming 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

HTTP Streaming 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

S60 5th Edition FP 1

audio/x-ms-wma

S60 5th Edition FP 1

audio/x-pn-realaudio

S60 5th Edition FP 1

audio/mpeg

S60 5th Edition FP 1

audio/3gpp

S60 5th Edition FP 1

audio/3g2

S60 5th Edition FP 1

audio/mp3

S60 5th Edition FP 1

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.