×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Nov 2008
    Location
    Beijing China.
    Posts
    28

    Unhappy question about CMdaAudioPlayerUtility

    Has anyone used this before?

    iPlayerUtility=CMdaAudioPlayerUtility::NewFilePlayerL(aFileName, *this);

    TInt aNumEntries;

    iPlayerUtility ->GetNumberOfMetaDataEntries(aNumEntries);


    Are these codes right?
    Why dosen't aNumEntries have a normal value?
    It shows -858993460 when debugging,this class can play MP3 music,but why can't it show the TAG, I have inputted the ID3V1 and ID3V2, but when I used the codes above, I got nothing.


    Somebody help me please!!

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

    Re: question about CMdaAudioPlayerUtility

    you need to wait untill the file is opened before reading the meta data.

  3. #3
    Registered User
    Join Date
    Nov 2008
    Location
    Beijing China.
    Posts
    28

    Re: question about CMdaAudioPlayerUtility

    Quote Originally Posted by symbianyucca View Post
    you need to wait untill the file is opened before reading the meta data.


    iPlayerUtility=CMdaAudioPlayerUtility::NewFilePlayerL(aFileName, *this);


    Do you mean after this ,the file is still not opened?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: question about CMdaAudioPlayerUtility

    Yes, it is opened "after" this line, and obviously not before. However the player can not be used as long as you do not get the OpenComplete notification.

  5. #5
    Super Contributor
    Join Date
    Jun 2008
    Posts
    593

    Smile Re: question about CMdaAudioPlayerUtility

    hi...

    In CMdaAudioPlayerUtility, the file to be processed needs to b opened some time before it is processed...

    so after opening it... implement a CPeriodic Timer..
    & after dat try to GetMetaData... even a delay of 20000 microseconds wud give u better result...

    Gud Luck

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: question about CMdaAudioPlayerUtility

    Success after some "time" is accidental, while success after the callback gets invoked is causal.

  7. #7
    Regular Contributor
    Join Date
    Apr 2008
    Location
    India
    Posts
    477

    Re: question about CMdaAudioPlayerUtility

    Success will be for sure after u get the call back from the framework....
    in MMdaAudioPlayerCallback::MapcInitComplete()
    and try ur code here ( getmetadata)

Similar Threads

  1. CMdaAudioPlayerUtility n CMdaAudioPlayerUtility
    By Shilpa13 in forum Symbian User Interface
    Replies: 5
    Last Post: 2006-11-18, 13:44
  2. Annoying question when dialing by bluetooth
    By tejohf in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-09-04, 19:56
  3. Newbie question: What is the call stack?
    By advocatee in forum Symbian
    Replies: 2
    Last Post: 2003-06-22, 05:27
  4. Replies: 0
    Last Post: 2003-04-07, 09:52
  5. question deleted
    By kiokups in forum General Messaging
    Replies: 1
    Last Post: 2002-09-25, 20:07

Posting Permissions

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