Content buffering

Media content is loaded using one of two different methods: buffering and direct playback. The used method depends on chosen media source. From MIDlet point of view these ways mainly differ in memory consumption.

Buffering is used when non-streamable media is accessed using InputStream (e.g. from JAR resource) or using HTTP or HTTPS protocols. In these cases the whole content is loaded into a buffer and will thus increase MIDlet memory usage.

Direct playback is used when media is accessed using ‘file’ or RTSP protocol. In these cases the whole content is played directly from the source location, resulting in smaller memory consumption.