Hi all,
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:
TApaTask::EndTask();
TApaTask::KillTask();
This work on old devices but does not work on FP1 devices.
I tried playing with CRemConCoreApiController like this:
This does not work.Code:iRemConCoreApiController = CRemConCoreApiController::NewL(*iSelector, *this); iTarget = CRemConCoreApiTarget::NewL( *iSelector, *this ); iSelector->OpenTargetL(); iSelector->OpenControllerL(); TRequestStatus status; TUint numRemotes = 0; TRemConCoreApiButtonAction butAct = ERemConCoreApiButtonClick; iRemConCoreApiController->Stop(status, numRemotes, butAct); User::WaitForRequest(status);
I also tried CMPlayerRemoteControl extended api for 3rd ed. FP1.
it works on N95 with WriteDeviceData capabiluty, but does not work on N95 8GB.Code:iMPlayerRemoteControl = MPlayerRemoteControlFactory::NewRemoteControlL(); iMPlayerRemoteControl->HandleCommand(EMPlayerRCtrlCmdStop);
So how to stop MusicPlayer, like e.g. VisuallRadio stops it?

Reply With Quote




