×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    80

    Interface PlayerListener in j2me

    Hi,

    I would like get notification in each second interval. Interface PlayerListener gives only start, stop etc.
    Is there any way I can get notified when I am playing audio file in my j2me app.
    At least in Symbian C++ and Qt has it, anything similar in j2me?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    603

    Re: Interface PlayerListener in j2me

    Hmmm i think you can try get the player TimeBase using getTimeBase() and then just query that object in a thread/timer

  3. #3
    Registered User
    Join Date
    Jun 2013
    Posts
    46

    Re: Interface PlayerListener in j2me

    How about using a TimerTask and just ask if player.getState()==Player.STARTED ?

Similar Threads

  1. PlayerListener.DEVICE_UNAVAILABLE states remains same.
    By rak_eshz in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-05-25, 12:52
  2. Implementation details for the PlayerListener Interface for JSR 135
    By rahul_sydus in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-01-30, 09:15
  3. PlayerListener doesn't work with s60 emulator
    By padsjt in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-01-10, 18:39
  4. Timing issues with PlayerListener
    By mrwolf in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-08-23, 06:23
  5. setMediaTime and PlayerListener probs
    By henrygps in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-07-31, 00:10

Posting Permissions

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