Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User beyossi's Avatar
    Join Date
    Nov 2007
    Posts
    13
    I am using an Series 40 SDK 3rd Edition tool kit in eclipse environment.

    the following is the code I execute:

    InputStream is = getClass().getResourceAsStream("/mtmp05116.wav");
    player = Manager.createPlayer(is, "audio/wav");
    player.addPlayerListener(this);
    player.realize();
    player.prefetch();

    (BTW - when I ask for "audio/x-wav" the createPlayer jump to the exception. and I don't understand why.)


    the program doesn't pass the prefetch and that's why I am trying to figure the reason for.

    The following is the stack trace of from the debugger:
    EventDispatcher.attachEventConsumer(int, EventConsumer)
    MediaEventConsumer.getInstance()
    AudioOutImpl(MediaOut).activate()
    AudioOutImpl(MediaOut).openRamDataSession(byte[],String,int,int)
    SampledPlayer(MediaPlayer).doPrefetch()
    SampledPlayer(BasicPlayer).prefetch()
    ...(here it is my app)


    The application stays at that state and doesn't change.

    Please help
    Thanks

  2. #2
    Nokia Developer Moderator r2j7's Avatar
    Join Date
    Aug 2007
    Posts
    1,595
    Hello beyossi,

    just to confirm: are you using emulator of Series 40 SDK 3rd Edition tool kit or some phone?

    Regards,
    r2j7

  3. #3
    Registered User beyossi's Avatar
    Join Date
    Nov 2007
    Posts
    13
    i am using the emulator

  4. #4
    Super Contributor soku123's Avatar
    Join Date
    Feb 2006
    Posts
    689
    Hi,
    Have you tried it on any phone.Also without calling realize and prefetch,try by calling player.start().Calling start() will automatically do realize and prefetch by its own.
    Thanks
    Soku

  5. #5
    Registered User beyossi's Avatar
    Join Date
    Nov 2007
    Posts
    13
    I just found the root cause.
    Somehow the user interface thread was delayed until the player finishes. Letting the caller user interface thread running while the player is running solved that issue.

    Thanks

  6. #6
    Registered User meghasanghvi's Avatar
    Join Date
    Apr 2012
    Posts
    3
    Hi,
    I have the same problem on Nokia Asha.When i play amy video it gets stuck at prefatch() event and another video is not played...

Similar Threads

  1. player.prefetch() freezes 6061 and 6102i
    By terencerm in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-02-27, 00:23
  2. N73 background stuck
    By benremedy in forum General Development Questions
    Replies: 2
    Last Post: 2006-11-28, 12:07
  3. CodeWarrior gets stuck at Linking
    By rock_win in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2006-10-06, 07:18
  4. while-loop, seperate thread, stuck
    By cstommijx in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-07-18, 22:22
  5. visual c++ stuck in infinite loop (SDK)
    By deloford in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-03-06, 09:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved