What is the right way to stop MusicPlayer application on Symbian 3rd edition phones?
My application plays audio and if the MusicPlayer is running in backgroumd, both audios are playing simultaneously.
I would expect that MusicPlayer has a highest priority and my application would not play.
But CMdaAudioPlayerUtility client do plays the sound at the same time as MusicPlayer with or without MultimediaDD capability. CVideoPlayerUtility client usually unable to start the video with sound when MusicPlayer is running, but on some devices it also plays audio while MusicPlayer is playing.
To stop the MusicPlayer I tried:
This work on old devices but does not work on FP1 devices.
I tried playing with CRemConCoreApiController like this:
This does not work.
iRemConCoreApiController = CRemConCoreApiController::NewL(*iSelector, *this);
iTarget = CRemConCoreApiTarget::NewL( *iSelector, *this );
TUint numRemotes = 0;
TRemConCoreApiButtonAction butAct = ERemConCoreApiButtonClick;
iRemConCoreApiController->Stop(status, numRemotes, butAct);
I also tried CMPlayerRemoteControl extended api for 3rd ed. FP1.
it works on N95 with WriteDeviceData capabiluty, but does not work on N95 8GB.
iMPlayerRemoteControl = MPlayerRemoteControlFactory::NewRemoteControlL();
So how to stop MusicPlayer, like e.g. VisuallRadio stops it?