×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    39

    I have a problem with SetPriority() method ofCMdaAudioPlayerUtility

    I am programing a audio program. playing mp3.But command continuing playing
    when phone ring.I think wheter I must set playing as hight-priority.please tell me, how can I set the hight-priority and where I place SetPriority()?Place in ConstructL or initializtion ?

  2. #2
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808

    Re: I have a problem with SetPriority() method ofCMdaAudioPlayerUtility

    It's better to have it while creating pointer to CMdaAudioPlayerUtility i.e.,

    CMdaAudioPlayerUtility *ply = CMdaAudioPlayerUtility::NewFilePlayerL(.., ..MdaPriorityMax);

    BR,
    SSS

  3. #3
    Registered User
    Join Date
    Mar 2006
    Posts
    39

    Re: I have a problem with SetPriority() method ofCMdaAudioPlayerUtility

    But I set this priority, not let continue playing when phone rings or get short message.
    what I do ?

  4. #4
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808

    Re: I have a problem with SetPriority() method ofCMdaAudioPlayerUtility

    Phone ringing will have more priority than any other so it will kill any other play and in MapcPlayComplete() error will come as KErrDied.

    In such case you again call CMdaAudioPlayerUtility::Play()

    BR,
    SSS

  5. #5
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    113

    Re: I have a problem with SetPriority() method ofCMdaAudioPlayerUtility

    Hi yinquan,

    have you had success with instantly calling again Play()? I am having some sort of the same issue, but when recording.

    Best Regards, Marcel

Similar Threads

  1. Problem with StartListeningEvents (continued)
    By BtySgtMajor in forum General Messaging
    Replies: 1
    Last Post: 2006-01-27, 16:17
  2. Replies: 1
    Last Post: 2005-12-04, 12:01
  3. Problem with sending SMS in Nokia 3200 from Java app
    By destroyer2003 in forum General Messaging
    Replies: 0
    Last Post: 2004-09-22, 12:12
  4. callSerially method problem
    By sinaptix in forum Mobile Java General
    Replies: 1
    Last Post: 2004-07-30, 23:39
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

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