×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Unhappy problem in setting the player position

    Hi

    I'm using CMdaAudioPlayerUtility in my audio player for S60 3rd/3rdfp1 and UIQ.
    I'm using SetPosition() to play from a a specific position, but it seems that it works in a range. I mean that, sometimes the function GetPosition() returns KErrNone, but give a position 0, I'm sure that the value passed to SetPosition() is before the audio file end. Also the problem starts at different positions on different devices, and does NOT appear on emulator at all.

    Is there any restriction on using SetPosition? Should I use another utility?

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: problem in setting the player position

    It has always been working just fine for me, provided that the file opened ok, and that it is in open state while changing the position (i.e. it is not playing etc.)

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: problem in setting the player position

    I found that, in the function MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration)
    the aDuration is less than the actual duration of the mp3 file.
    Also, I converted the mp3 file to amr and used it. I found that the aDuration has a different value, but still less than the actual duration.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: problem in setting the player position

    maybe it would work better with CMdaAudioRecorderUtility. It has Duration() function, which with you can query the duration after the file has been opened. At least it has always worked correctly in all projects I have used it.

  5. #5
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: problem in setting the player position

    I used CMdaAudioRecorderUtility and it works well for S60. But still have the problem on UIQ (I'm using P1i).

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: problem in setting the player position

    You should then raise an issue on that one on UIQ support forums..

  7. #7
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    54

    Re: problem in setting the player position

    Ok, thanks for help.

  8. #8
    Registered User
    Join Date
    Mar 2008
    Posts
    44

    Re: problem in setting the player position

    I am developing a MP3 player. The forward and reverse are properly working in emulator but its not working in real phone....

    my code for reverse is :

    iMdaAudioPlayerUtility->GetPosition(aPosition);
    aPosition = aPosition.Int64() - 1000000;
    iMdaAudioPlayerUtility->SetPosition(aPosition);

    I am using Nokia 6630. Actually for ".wav" file forward n reverse is fine on real phone but for MP3 file its not working.... plz help..............

Similar Threads

  1. problem in setting password
    By ab in forum Symbian
    Replies: 2
    Last Post: 2007-12-06, 14:32
  2. Problem in Video Player..Plz Help
    By Anurag Bombarde in forum Symbian
    Replies: 0
    Last Post: 2007-11-22, 05:34
  3. Problem with dynamic setting list?
    By b4605318 in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-11-17, 10:03
  4. setting list problem
    By ddhungry in forum Symbian
    Replies: 0
    Last Post: 1970-01-01, 02:00
  5. setting list problem
    By ddhungry in forum Symbian User Interface
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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