} else {
					NetPlayer_SetCategory('_'.NetPlayer_GetNameFromProfile($value,'NetPlayer_Category'));
		      }
		      break;
		   case NP_ID_CDTRACKNAV:
				SetValue($variable, $value);
		      if ($value==NP_IDX_CDPREV) {
					NetPlayer_NavigateTrackBack(NP_COUNT_TRACKVARIABLE);
		      } else {
					NetPlayer_NavigateTrackForward(NP_COUNT_TRACKVARIABLE);
		      }
				IPS_SLEEP(200);
				SetValue($variable, -1);
		      break;
		   case NP_ID_CDTRACKLIST:
				NetPlayer_SetPlayListPosition($value+1);
		      break;
		   case NP_ID_CDALBUMNAV:
				SetValue($variable, $value);
		      if ($value==NP_IDX_CDPREV) {
					NetPlayer_NavigateCDBack(NP_COUNT_CDVARIABLE);
		      } else {
					NetPlayer_NavigateCDForward(NP_COUNT_CDVARIABLE);
		      }
				IPS_SLEEP(200);
				SetValue($variable, -1);
		      break;
		   case NP_ID_CDALBUMLIST:
				$directory     = NetPlayer_GetNameFromProfile($value,'NetPlayer_CDAlbumList');
				$basePath      = NETPLAYER_DIRECTORY;
				$categoryPath  = GetValue(NP_ID_CDCATEGORYNAME);
Ejemplo n.º 2
0
	// 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);
    }
    ;
	/** @}*/
?>