SetValue($variable, -1); break; 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') {
// CD Selection - List CDs in MP3 Repository } else if (substr($id,0,5)=="rc_cd") { NetPlayer_PlayDirectory($_GET['cd_path']); } else if ($id=="rc_mp_cdselectprev") { NetPlayer_NavigateCDBack(NP_COUNT_CDHTML); } else if ($id=="rc_mp_cdselectnext") { NetPlayer_NavigateCDForward(NP_COUNT_CDHTML); } else if (substr($id,0,6)=="rc_cat") { NetPlayer_SetCategory($_GET['cd_cat']); } else if ($id=="rc_mp_cdselectroot") { NetPlayer_SetCategory(''); } else if ($id=="rc_mp_cdselectback") { NetPlayer_SwitchToMP3Player(false); } else if (substr($id,0,11)=="rc_mp_track") { NetPlayer_SetPlayListPosition((int)$_GET['track']); // Mediaplayer Set Webradio Station } else if (substr($id,0,11)=="rc_mp_radio") { NetPlayer_PlayRadio($_GET['radiourl'], $_GET['radiotitel']); } else if ($id=="rc_mp_radioselectprev") { NetPlayer_NavigateRadioBack(NP_COUNT_RADIOHTML); } else if ($id=="rc_mp_radioselectnext") { NetPlayer_NavigateRadioForward(NP_COUNT_RADIOHTML); } else { IPSLogger_Err(__file__, "Received Unknown Netplayer ObjID=".$id); } ; /** @}*/ ?>