×

Discussion Board

Results 1 to 15 of 15

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    20

    Forward Volume key event to music player

    I am using Qt Game Enabler which uses MrccatoCommand from MRemConCoreApiTargetObserver to capture volume keys like this:

    Code:
    void VolumeKeys::MrccatoCommand(TRemConCoreApiOperationId operationId,
                                    TRemConCoreApiButtonAction buttonAct)
    {
        DEBUG_INFO("operation:" << operationId << " action:" << buttonAct);
    
        if (buttonAct == ERemConCoreApiButtonClick) {
            if (operationId == ERemConCoreApiVolumeUp)
            {
                m_observer->onVolumeUp();
            }
            else if (operationId == ERemConCoreApiVolumeDown)
                m_observer->onVolumeDown();
        }
    }
    This works fine but my problem is that the Symbian music player now has no response to the keys, I'm guessing this is because I have caught them. I would like to know if there is any way I can send the command back or forward it once I have used it?

    OR if there is a way I can get the volume events without "stealing" them then that would also works.

    Thanks in advance!

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

    Re: Forward Volume key event to music player

    You can control the music player if you really want to: http://www.developer.nokia.com/Commu...te_Control_API
    However my opinion is that you should do it vice versa: release capturing the events when you do not need them.
    Handling them both in your code and with the Music Player at the same time probably is not a good idea. Here I imagine a situation where let us say you have a breakout game and move the paddle with the volume keys. Most probably the user does not want to lower the volume just because she moves the paddle downwards, and she especially does not want the phone start shouting loud when the paddle is moving upwards.

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    20

    Re: Forward Volume key event to music player

    Thanks for the quick reply but I have already tried the music player remote control api but it doesn't seemto be compatible with symbian 3. My game though on the other hand does not use the volume keys as controls, they are used the lower the volume of the sound eefects therefor I think the user would want all events to be passed to the next listner (music player). So my question is actually how can I just look at the event and then release it to be further proccessed?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: Forward Volume key event to music player

    Since the plug-in API-s are not released for Symbian^3, it may be worth mentioning here that there was a time when Symbian^3 was open source, and there is a snapshot of that source code on SourceForge, project symbiandump (the other half of the truth is that this snapshot is almost 2 years old now). There you may find what has happened to this API, and perhaps get a working one.

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    20

    Re: Forward Volume key event to music player

    Thanks for the help but all I really want to know is how I can read the volume key event and then release it again, I read in another post that there is apparently a wiki about this but I cannot find it?

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

    Re: Forward Volume key event to music player

    Quote Originally Posted by Gerhman.dc View Post
    I read in another post that there is apparently a wiki about this but I cannot find it?
    I can not find related articles either. Can you tell where you have read about it? That may help in searching.

Similar Threads

  1. Things I miss in new Media Player and prefer old Music Player instead.
    By haroonbarech in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2012-04-12, 06:27
  2. How to make KD Player as default music player on s40?
    By Ssnigdho in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2011-03-08, 19:40
  3. keep 'music player'-music going while using flash sounds
    By redfuse in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-10-18, 23:13
  4. N79 Music Player is not deducting songs in music folder
    By vijayan.vvv in forum General Development Questions
    Replies: 1
    Last Post: 2009-09-11, 13:38
  5. Capturing Music Slider Event ( Nokia 5610 Express Music )
    By mekadur in forum Mobile Java General
    Replies: 2
    Last Post: 2008-01-24, 06:57

Posting Permissions

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