×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    108

    Play audio files when current item index changes in CAknListQueryDialog.

    I want to implement something like system's built-in ring-tone setting program.
    The point is that when I select a file, it will play that audio file after a while( about 1 second).
    I use CAknListQueryDialog to let user select audio file, how can I know when the user selects a file ?

    I've tried to implement HandleListBoxEvent(), but it seems not working.

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,033

    Re: Play audio files when current item index changes in CAknListQueryDialog.

    ok if im correct you just want to play the file when user moves the focus up or down the items or you want to play file when user selects a focused item?

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    108

    Re: Play audio files when current item index changes in CAknListQueryDialog.

    I want to play the file when user moves the focus up or down the items.
    It's not so appropriate to say "select" here, sorry.
    When changing the current item index.

  4. #4
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    108

    Re: Play audio files when current item index changes in CAknListQueryDialog.

    vineet.jain
    Do you know how to do that ?
    To play the file when user moves the focus up or down the items.

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,033

    Re: Play audio files when current item index changes in CAknListQueryDialog.

    ok, i don't know this is the right method or not, but you can try something like below:

    whenever you change focus, then ofcourse your control will come in OfferKeyEventL(), now in this function under the cases EKeyEventUp/EKeyEventDown, find the current item index and fetch the name of audio file and then pass that name to the playing method to play that file.

    for e.g. you make a key down event, ok then in EKeyEventDown, do something like below:

    TInt err = ilist->CurrentItemIndex()
    & then fetch the name of that item.

  6. #6
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    108

    Re: Play audio files when current item index changes in CAknListQueryDialog.

    I am talking about Pop-up list query dialog.
    So actually I am not able to handle key event before CAknListQueryDialog,
    maybe I need to customize a pop-up list class for my use.

  7. #7
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Play audio files when current item index changes in CAknListQueryDialog.

    Quote Originally Posted by nadis View Post
    I am talking about Pop-up list query dialog.
    So actually I am not able to handle key event before CAknListQueryDialog,
    maybe I need to customize a pop-up list class for my use.

    Try something like this:

    CAknListQueryDialog::ListBox()->Model()->MatchableTextArray()->MdcaPoint(/*the index of the item to be retrived*/)
    Regards,
    Shafali

Similar Threads

  1. Do not play audio properly using MobiFLV open source code.
    By SymbianTH in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2009-08-19, 15:10
  2. double buffer for stream and play audio in J2ME
    By cibenxs in forum Mobile Java General
    Replies: 0
    Last Post: 2008-06-12, 11:22
  3. Using Audio Proxy Server to play only (not play and record)
    By rob_savageminds in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2007-09-04, 12:11
  4. play audio files
    By khalandar in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-03-07, 05:58

Posting Permissions

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