Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User tata_simene's Avatar
    Join Date
    May 2004
    Posts
    12
    Hi all!

    I am trying to develop a cleint/server application, using bluetooth.
    And the server (computer) sends some audio data to the client (nokia 7650).
    I can receive the audio data successfully, I checked the size and so on...
    But impossible to play the audio data, it crashes in the MapcInitComplete function with the KErrNotSupported error (-5).
    I thought it could be the format of the audio data (WAV and AMR), but if I load the file with the application and open the file (NewFilePlayerL()), it plays my audio sample well.

    So I am out of ideas now, and I need your help ;)

    Here some of my code from my AppUI.cpp, when it receives some data from the server :
    TDes8* iDes;
    iDes = new(ELeave) TBuf8<10000>;
    iDes->Zero();

    //buffer contains the data I received from the server via bluetooth
    for (TInt i=0;i<buffer.Length();i++)
    {
    iDes->Append(buffer[i]);
    }
    iPlayerAdapter = CPlayerAdapter::NewL(*iDes, *this);
    SetAdapterL(iPlayerAdapter);

    And here is the implementation of playeradapter.cpp:
    void CPlayerAdapter::ConstructL(TDes8& aDes
    {
    iMdaAudioPlayerUtility = CMdaAudioPlayerUtility::NewDesPlayerL(aDes, *this);
    }

    void CPlayerAdapter::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/)
    {
    iState = aError ? ENotReady : EReadyToPlay;
    if (!aError)
    iMdaAudioPlayerUtility->Play();
    else
    //I display the message error here : KErrNotSupported -5
    }

    What is wrong in my code? Do i need some flush or something like that?

    Thanks in advance!

    Sihem

  2. #2
    Hi All,

    i have same problem only with mp3 files. .wav files works properly with this api.please can anybody help me to solve this issue.

  3. #3
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Talking about "same" in a 6.5 years old thread is always a bit confusing... If you are really using the same device, note that S60 devices do not support .mp3 prior to S60 2nd edition Feature Pack 1.

  4. #4
    Super Contributor nital_shah's Avatar
    Join Date
    Jun 2008
    Posts
    593
    i tried CMdaAudioPlayerUtility::NewDesPlayerL() , NewDesPlayerReadOnlyL() , OpenDesL() ... they all return (-5) [Operation not supported Error]......

    Also m trying to play WAV data..

    all related threads are unconcluded....

    plz Help!!

    Thanks.
    Nital Shah

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    A sanity check could be testing if the device is able to play that file at all. Copy the file to some public location (like the memory card), and try to play it from the File Manager.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved