Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:47, 23 August 2007.

KIJ000449 - Playing large audio files by using InputStream throws an OutOfMemoryError

From Forum Nokia Wiki


Playing large audio files by using InputStream throws an OutOfMemoryError
KIJ000449
Overview
If an audio player is created using the Manager.createPlayer(InputStream in, String mimeType) and large audio files are played, Series 40 devices run out of memory.
Reported against
Series 40 2nd Edition and Series 40 3rd Edition,
all devices with MMAPI.
Date identified
November 22, 2006
Symptoms
-
Detailed description
If an audio player is created using the Manager.createPlayer(InputStream in, String mimeType), the player tries to read the entire stream to heap memory. At about 700 kB the device throws an OutOfMemoryError. This does not happen if the audio player is created by using the form Manager.createPlayer(String fileUrl). While this player does play songs of unlimited length, it expects a cleartext media file.
How to reproduce
Create audio player by using form Manager.createPlayer(InputStream in, String mimeType) and try to play back a large (> 1MB) audio file.
Solution
Some of the Series 40 3rd Edition FP2 devices support audio streaming, but only for specific audio formats (MP3, MP4 and AAC). Streaming must also be explicitly requested by the MIDlet using a special JAD attribute that causes all players to attempt streaming if they support the given content type and protocol. The JAD tag that the MIDlet must define is as follows:
progressive_download: enabled

Note: MetaDataControl is unsupported for Players that use this feature.

For the other Series 40 devices, there is currently no solution.
Related Discussions
Thread Thread Starter Forum Replies Last Post
Audio recording from a audio player kevin8093 Symbian Media (Graphics & Sounds) 6 2008-03-27 09:33
7210 Emulator Problem goeast Mobile Java General 1 2003-03-19 07:50
Play two videos simultaneously rithesh.pai Symbian Media (Graphics & Sounds) 6 2007-08-31 09:34
how to change audio playing option. bunty General Symbian C++ 3 2006-11-09 14:20
problem of LIVE audio streaming on nokia 6630 nilgosavi Mobile Java Media (Graphics & Sounds) 3 2005-11-11 05:45
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX