×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    2

    Trying to play audio on Nokia C3, results in : Failed to fetch media data.

    I am currently working on a project that uses Manager.createPlayer(InputStream is, String mimeType) to create an audio player.

    The audio player works perfectly on the emulator. On a Nokia C3 it is able to play an audio/mpeg track after the app starts, but fails when an attempt is made to play the same/other audio again. On prefetch a message, "failed to fetch media data" is caught.

    When opening the player for the first time it is taken through the normal lifecycle: realize,prefetch,start.
    After the track is finished it is: stopped,deallocated,closed . The player is even set to null, before the process is repeated for another audio track.

    Any ideas?

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: Trying to play audio on Nokia C3, results in : Failed to fetch media data.

    Have you checked it on any other device. Is the issue reproducible on other device too

  3. #3
    Registered User
    Join Date
    Dec 2012
    Posts
    2

    Re: Trying to play audio on Nokia C3, results in : Failed to fetch media data.

    This issue seems to be reproducible on:
    Nokia 5130 XpressMusic
    Nokia X2

    Here is the util we use to start the play:

    public static Player play(PlayerListener listener, InputStream is, String[] mimeTypes) {
    Player player = null;
    for (int i = 0; i < mimeTypes.length; i++) {
    try {
    player = Manager.createPlayer(is, mimeTypes[i]);
    player.realize();
    player.prefetch();
    player.addPlayerListener(listener);
    player.start();
    Log.write("started - " + mimeTypes[i]);
    break;
    } catch (Exception e) {
    Log.write("player fail (" + mimeTypes[i] + "): " + e.getMessage());
    player = null;
    } catch (Throwable e) {
    Log.write("player fail (" + mimeTypes[i] + "): " + e.getMessage());
    player = null;
    }
    }
    return player;
    }
    Last edited by trolloks; 2012-12-12 at 08:38. Reason: more information

Similar Threads

  1. avax.microedition.media.MediaException: Failed to get Camera Snapshot data size
    By Len23 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2010-03-25, 05:30
  2. use CMdaAudioOutputStream to play audio data and get a exception
    By daiqingping in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2009-01-19, 00:27
  3. To play raw audio data file
    By pawans in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2008-12-11, 11:38
  4. How to play the incomming audio data:
    By seshukc in forum Symbian
    Replies: 4
    Last Post: 2004-09-28, 22:48
  5. Streaming audio does not play if too less data
    By hdormann in forum Symbian
    Replies: 10
    Last Post: 2004-04-28, 10:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •