Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 09:36, 9 April 2008.

CMPMediaPlayerSettings:

From Forum Nokia Wiki

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.
    iSetting->SetVolumeLevelL(8);
 
}
void CTestMPSettingsAppUi::ControlMutedL()
{
    //Sets Media Player in Mute mode.
    iSetting->SetMutedL(ETrue);
 
    //Returns true if Media Player is in Mute mode. 
    iSetting->IsMutedL()   
}
 
void CTestMPSettingsAppUi::ControlAutoDisconTimeL()
{
    //Sets Media Player auto disconnection time to 10 mins.
    //Ranges between 1-99, Time in minutes
    iSetting->SetAutoDisconTimeL(10);
 
    //Returns Media Player auto disconnection time.
    //disconTime contains auto disconnection time.
    TInt disconTime = iSetting->AutoDisconTimeL();   
}
Related Discussions
Thread Thread Starter Forum Replies Last Post
MediaPlayerEngine API felixksp General Symbian C++ 4 2008-01-18 15:00
Volume Settings of default player S60 3rd Edition chetanknanda General Symbian C++ 3 2007-11-23 10:49
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX