Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.


From Wiki
Jump to: navigation, search
Article Metadata
Created: samiudd (29 Jun 2007)
Last edited: hamishwillee (20 Jul 2012)

The CMPMediaPlayerSettings application provides the Media Settings UI, where the user can control the volume and playing mode of the file. The SetAutoDisconTimeL(TInt) can be used to automatically discontinue playing the file after a given period of time.

Below is the example code of CMPMediaPlayerSettings usage.

void CTestMPSettingsAppUi::ContructL()
CMPMediaPlayerSettings* iSetting = CMPMediaPlayerSettings::NewL();
void CTestMPSettingsAppUi::ControlVolumeLevelL()
//Returns Media Player volume level.
TInt i = iSetting->VolumeLevelL();
//Sets Media Player volume level. Ranges between 1-10.
void CTestMPSettingsAppUi::ControlMutedL()
//Sets Media Player in Mute mode.
//Returns true if Media Player is in Mute mode.
void CTestMPSettingsAppUi::ControlAutoDisconTimeL()
//Sets Media Player auto disconnection time to 10 mins.
//Ranges between 1-99, Time in minutes
//Returns Media Player auto disconnection time.
//disconTime contains auto disconnection time.
TInt disconTime = iSetting->AutoDisconTimeL();
This page was last modified on 20 July 2012, at 02:10.
34 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.