×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    17

    Cool JSR 135 player forward and rewind

    Hi ,

    Is there any way on S60 3rd edition devices by using JSR 135 we can do forward & rewind .If yes, then tell how to do that?

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: JSR 135 player forward and rewind

    Hello, you can use a couple methods of the player

    Code:
    setMediaTime(long now)        Sets the Player's media time. 
    long getMediaTime()           Gets this Player's current media time. 
    long getDuration()            Get the duration of the media.
    Player API Reference
    :Ruben

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: JSR 135 player forward and rewind

    You can try:

    Code:
    // When you player is playing
    //for forward: 10 sec's
    try { player.setMediaTime(player.getMediaTime()+10000); } catch(Exception e)
    //for revind: 10 sec's
    try { player.setMediaTime(player.getMediaTime()-10000); } catch(Exception e)
    // IllegalStateException - Thrown if the Player is in the UNREALIZED or CLOSED state.
    //  MediaException - Thrown if the media time cannot be set.
    thanks,
    ~Amitabh

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    17

    Smile Re: JSR 135 player forward and rewind

    thanks guys,

    I will check this thing and let u know the result.

  5. #5
    Registered User
    Join Date
    Dec 2007
    Posts
    17

    Smile Re: JSR 135 player forward and rewind

    Thanx it's working fine

Similar Threads

  1. jsr 135
    By jitu_goldie in forum Mobile Java General
    Replies: 2
    Last Post: 2009-02-05, 04:15
  2. Media Player 6230
    By agoff in forum Streaming and Video
    Replies: 5
    Last Post: 2005-01-19, 05:06
  3. Pause, rewind, forward Sound control.
    By dustbin in forum Symbian
    Replies: 2
    Last Post: 2003-10-31, 08:08

Posting Permissions

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