×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2006
    Location
    London
    Posts
    34

    CMdaAudioPlayerUtility OpenDesL()

    I am trying to use the CMdaAudioPlayerUtility OpenDesL() Method with a DesC8 descriptor filled with data from an .aac audio file.
    When i use the OpenDesL method i get KErrNotSupported -5 error.
    But when i use the OpenFileL method with the same audio file it plays.

    Am i missing something out?
    I have read in a doc that mp3's required the mime type to be placed at the start of the descriptor, i tried this as well but it also resulted in the same error.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: CMdaAudioPlayerUtility OpenDesL()

    Note that OpenDesL methods of media-classes are often not supported (implemented) at all. You might want to try that .mp3 thing if it really works.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    20

    Re: CMdaAudioPlayerUtility OpenDesL()

    He wrote he tried it and it didn't work.

    I tried it too, with an MP3 in a descriptor, with and without mime type, on the 3rd Ed. FP1 emulator, and it didn't work.

    However, using NewFilePlayerL or OpenFileL(const TDesC& aFileName) with an mp3 as a file did work.

    Unfortunately, reading from a file is useless as far as my application is concerned.

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

    Re: CMdaAudioPlayerUtility OpenDesL()

    Quote Originally Posted by Fredrik Eldh View Post

    Unfortunately, reading from a file is useless as far as my application is concerned.
    And why it is so ? for security reasons maybe ?

  5. #5
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Bangalore, India
    Posts
    56

    Re: CMdaAudioPlayerUtility OpenDesL()

    Hi,

    If you are trying to play from a descriptor you can use CMdaAudioOutputStream rather than CMdaAudioPlayerUtility.
    CMdaAudioOutputStream::WriteL(const TDesC8 &aData);
    will play a data in descriptor. This works for mp3.

    Regards
    Arun

  6. #6
    Regular Contributor
    Join Date
    Mar 2006
    Location
    India
    Posts
    138

    Re: CMdaAudioPlayerUtility OpenDesL()

    Quote Originally Posted by sandopolus View Post
    I am trying to use the CMdaAudioPlayerUtility OpenDesL() Method with a DesC8 descriptor filled with data from an .aac audio file.
    When i use the OpenDesL method i get KErrNotSupported -5 error.
    But when i use the OpenFileL method with the same audio file it plays.

    Am i missing something out?
    I have read in a doc that mp3's required the mime type to be placed at the start of the descriptor, i tried this as well but it also resulted in the same error.
    Hi
    if u have been successfule please let me know
    -anand

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    45

    Re: CMdaAudioPlayerUtility OpenDesL()

    Hi anand_zain76,

    I have this problem with CMdaAudioPlayerUtility and mp3 files. Did you solve this problem?

    Thanks,

    Maria

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: CMdaAudioPlayerUtility OpenDesL()

    Consider heading towards the streaming case - search for streaming mp3 using the Search box on the left, most of the relevant hits are going to be on the second page.

  9. #9
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    Re: CMdaAudioPlayerUtility OpenDesL()

    You need to ensure that the descriptor provided to OpenDesL is not deleted imediately after the call. In need to remain valid until is read inside the multimedia server. For example, in case of playing sounds, you can make it member in a object deleted after the sound is played.

Similar Threads

  1. CMdaAudioPlayerUtility n CMdaAudioPlayerUtility
    By Shilpa13 in forum Symbian User Interface
    Replies: 5
    Last Post: 2006-11-18, 13:44
  2. Delay when delete CMdaAudioPlayerUtility
    By billchie in forum Audio
    Replies: 2
    Last Post: 2005-12-26, 13:20
  3. Problem using CMdaAUdioPlayerUtility
    By moneyease in forum Symbian
    Replies: 0
    Last Post: 2004-02-11, 14:31
  4. sound && CMdaAudioPlayerUtility Help
    By qibinyi in forum Symbian
    Replies: 1
    Last Post: 2003-08-07, 03:51
  5. sound && CMdaAudioPlayerUtility Help
    By qibinyi in forum Symbian
    Replies: 2
    Last Post: 2003-08-06, 12:55

Posting Permissions

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