case NP_ID_CDALBUMLIST: $directory = NetPlayer_GetNameFromProfile($value,'NetPlayer_CDAlbumList'); $basePath = NETPLAYER_DIRECTORY; $categoryPath = GetValue(NP_ID_CDCATEGORYNAME); if ($categoryPath<>"") $basePath = $basePath."\\".$categoryPath; $directory = $basePath . "\\" . $directory; NetPlayer_PlayDirectory($directory); break; case NP_ID_RADIONAV: SetValue($variable, $value); if ($value==NP_IDX_RADIOPREV) { NetPlayer_NavigateRadioBack(NP_COUNT_RADIOVARIABLE); } else { NetPlayer_NavigateRadioForward(NP_COUNT_RADIOVARIABLE); } IPS_SLEEP(200); SetValue($variable, -1); break; case NP_ID_RADIOLIST: $radioName = NetPlayer_GetNameFromProfile($value,'NetPlayer_RadioList'); $radioList = NetPlayer_GetRadioList(); $radioUrl = $radioList[$radioName]; NetPlayer_PlayRadio($radioUrl, $radioName); break; default: IPSLogger_Err(__file__, 'Unknown ControlID '.$variable); } } elseif ($_IPS['SENDER'] == 'Execute') { }
function NetPlayer_Next() { NetPlayer_Power(true); $plaverState = GetValue(NP_ID_CONTROL); SetValue(NP_ID_CONTROL, NP_IDX_CONTROLNEXT); NetPlayer_GetIPSComponentPlayer()->Next(); IPS_SLEEP(200); SetValue(NP_ID_CONTROL, $plaverState); }