×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Getting "Feature not Supported (-5)" while trying to get the metadata of a audiofile

    Hi

    I am developong an audioplayer application which can record and playback wav files. While playing I have to display the information about the audio file on the playback screen(metadata:artistname,albumname,titlename,etc). I have used CMdaAudioRecorderUtility to record and play the recorded file. To get the metadata information I have used the methods GetNumberOfMetaDataEntries() and GetMetaDataEntryL() provided by CMdaAudioRecorderUtility class. I have written a function GetMetaDataL() to extract the metadata values of the audio file and calling it after the PlayL(). I am getting the error "Feature not Supported (-5)" error. If any one knows how to resolve this error please let me know. Attached is the code snippet.

    GetMetaDataL() function:

    void CAudioRecorder:: GetMetaDataL(TDes& aTitle,TDes& aAlbum,TDes& aArtist,TDes& aGenre,CMdaAudioRecorderUtility& aUtility)
    {
    TInt MDNumEntries(0);
    User::LeaveIfError(aUtility.GetNumberOfMetaDataEntries(MDNumEntries));

    for ( TInt j = 0; j < MDNumEntries; j++ )
    {
    CMMFMetaDataEntry* entry = aUtility.GetMetaDataEntryL(j);
    CleanupStack::PushL(entry);

    //if(errorValue == KErrNone)
    //{
    if (entry->Name().CompareF(KMMFMetaEntrySongTitle) == KErrNone)
    {
    aTitle.Copy(entry->Value());
    }
    else if (entry->Name().CompareF(KMMFMetaEntryAlbum) == KErrNone)
    {
    aAlbum.Copy(entry->Value());
    }
    else if (entry->Name().CompareF(KMMFMetaEntryArtist) == KErrNone)
    {
    aArtist.Copy(entry->Value());
    }
    else if (entry->Name().CompareF(KMMFMetaEntryGenre) == KErrNone)
    {
    aGenre.Copy(entry->Value());
    }
    //}

    CleanupStack::PopAndDestroy(entry);
    }
    }


    The above function is called inside a function after play function is called,

    iToneUtility->PlayL();
    GetMetaDataL(iTitle,iAlbum,iArtist,iGenere,*iToneUtility);

    *** iToneUtility is an instance of aGenre,CMdaAudioRecorderUtility

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,987

    Re: Getting "Feature not Supported (-5)" while trying to get the metadata of a audio

    i think you have to use the following API CMdaAudioPlayerUtility to get the meta data entries while playing the audio file and not CMdaAudioRecorderUtility

Similar Threads

  1. Get "Feature not supported ( -5)" when opening app in some devices
    By stonejustek in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-01-15, 17:40
  2. ID3, atoms, metadata & the MMF
    By Gingah in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-02-08, 12:19
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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