×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Question [moved] Why CBA event interrupt playback?

    Hi,

    I just achieve a playback function on S60 5th, but when I press the "Option" from CBA, the audio playback is stopped. It seems that problem is not reproduced on S60 3rd.

    Anyone who can tell me the reason? Thanks!

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

    Re: Why CBA event interrupt playback?

    Which API do you use?

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Question Re: Why CBA event interrupt playback?

    Quote Originally Posted by zs View Post
    Hi,

    I just achieve a playback function on S60 5th, but when I press the "Option" from CBA, the audio playback is stopped. It seems that problem is not reproduced on S60 3rd.

    Anyone who can tell me the reason? Thanks!
    I have found what is the problem. When we use the S60 5th Emulator, the mouse-click happens with a bee tone. The bee tone interrupts the playback! The this problem can not happen when use hardkey!
    But who can tell me how to disable the key tone in Emulator? I have tried to disable it from phone setting, but it dose not help.

    Thanks!

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Re: Why CBA event interrupt playback?

    Quote Originally Posted by wizard_hu_ View Post
    Which API do you use?
    My player model is inherited from "MMdaAudioPlayerCallback". I think the problem is obviously caused by the bee tone happens with the mouse click. If I press softkey "Option" via touch screen using mouse, the playback stop, but if I press "Option" via hardkey, there is no problem since the hardkey dose not cause the bee tone. It seems that the bee tone grabs the audio resource. But I have not tried it on a real device.

    Thanks!

  5. #5
    Registered User
    Join Date
    Aug 2008
    Posts
    23

    Re: Why CBA event interrupt playback?

    Quote Originally Posted by zs View Post
    My player model is inherited from "MMdaAudioPlayerCallback". I think the problem is obviously caused by the bee tone happens with the mouse click. If I press softkey "Option" via touch screen using mouse, the playback stop, but if I press "Option" via hardkey, there is no problem since the hardkey dose not cause the bee tone. It seems that the bee tone grabs the audio resource. But I have not tried it on a real device.

    Thanks!
    I have worked out the problem. I add "iModel->GetPlayer()->SetPriority(EMdaPriorityMax ,EMdaPriorityPreferenceQuality);" to my code.

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

    Re: Why CBA event interrupt playback?

    That is fine then. Note that you were actually given a notification about interruption via MMdaAudioPlayerCallback::MapcPlayComplete, where you could have tried to continue/re-start playback.

    A minor suggestion: since it has accidentally 'turned out' that you are using Symbian C++, consider posting your future threads in the appropriate Symbian C++ boards. If you click back to "You Are Here: Home > Community > Discussion Boards" on the top of this page, you will find them.
    Do not worry about your existing threads, moderators are able to move them.

Similar Threads

  1. [moved] how to set the cba background in s60 3rd mr or previous sdk?
    By lmyuanhang in forum Symbian User Interface
    Replies: 1
    Last Post: 2010-08-24, 09:24
  2. [moved] How to handle key event in multiviews?
    By sundy10 in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-11-08, 10:21
  3. why I can't send the key "1" event
    By songlinhe in forum Symbian
    Replies: 3
    Last Post: 2007-05-30, 08:05
  4. CLogEvent problem
    By silviuccia in forum Symbian
    Replies: 2
    Last Post: 2006-12-22, 15:28
  5. Interrupt CMdaAudioPlayerUtility playback
    By lukedau in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-08-22, 07:21

Posting Permissions

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