| Advanced | |||||||
For AVRCP usersYou may control Nitrogen through AVRCP using AVRCP Agent (by Wolfman-XP). You'll need to configure the agent like this: Code:
Path to application: "Program FilesNitrogenNitrogen.exe" (if you installed on the device memory) You may control Nitrogen through wired headphone button using PlayPause mod (thanks to Zepiii). For developers Nitrogen now stores the current song info under the following registry key: Code:
HKEY_LOCAL_MACHINESystemStateNitrogen :: AlbumArtFilename - contains the album art filename of the current song; if no album art was found, this value is "(none)"; :: MusicCode - contains a number that increases whenever the current song changes. This way, developers can check whether they need to update the song info on their programs or not; :: PlayStatus - may assume the following values: 0 - paused and the current song is not the paused one; 1 - paused and the current song is the paused one; 2 - playing, but the current song is not the playing one; 3 - playing and the current song is the playing one; (for general purpose, you should display a "Play" button when PlayStatus is 0, 1 or 2, and a "Pause" button when it's 3). :: Running - 1 when Nitrogen is running, and 0 when it's not; :: SongArtist - Contains the current song artist; :: SongTitle - Contains the current song title; :: TimeElapsed - Contains the elapsed song time (secs); :: TimeTotal - Contains the total song time (secs); You can control Nitrogen through the following messages: :: WM_NTG_ISPLAYING = WM_USER+3001 :: :: wParam = 0; lParam = 0 :: :: Returns 1 when a song is playing; :: WM_NTG_GETCURRENT = WM_USER+3002 :: :: wParam = 0; lParam = 0 :: :: Returns a LONG in which the low-order is the current song position (secs) and the high-order is the total song time (secs); :: WM_NTG_SETCURRENT = WM_USER+3003 :: :: wParam = new song time (secs); lParam = 0 :: :: Returns 1 if successful; :: WM_NTG_GETVOLUME = WM_USER+3005 :: :: wParam = 0; lParam = 0 :: :: Returns the current volume (0~100); :: WM_NTG_SETVOLUME = WM_USER+3006 :: :: wParam = new volume (0~100) if lParam = 0 :: :: wParam = delta volume (-100~100) if lParam = 1 (relative volume) :: :: Sets the current volume, and returns 0; :: WM_NTG_GETMUSICCODE = WM_USER+3007 :: :: wParam = 0; lParam = 0 :: :: Returns a number that increases whenever the current song changes; Also, you can perform common button tasks with WM_COMMAND messages: :: ECMD_PLAYPAUSE (WM_COMMAND; wParam = 40001; lParam = 0) :: :: Simulates a click on the Play/Pause button; :: ECMD_PREVSONG (WM_COMMAND; wParam = 40002; lParam = 0) :: :: Simulates a click on the Previous Song button; :: ECMD_NEXTSONG (WM_COMMAND; wParam = 40003; lParam = 0) :: :: Simulates a click on the Next Song button; :: ECMD_VOLUMEDOWN (WM_COMMAND; wParam = 40004; lParam = 0) :: :: Simulates a click on the Volume Down button; :: ECMD_VOLUMEUP (WM_COMMAND; wParam = 40005; lParam = 0) :: :: Simulates a click on the Volume Up button; For ROM cookers If you want to include Nitrogen on your ROM distribution, you may set custom skins and config directory (if you want to put the EXE under "Windows") by adding the following registry keys: Code:
HKLMSoftwareNitrogenSkinsPath = {new skins path}
| |||||||


