Ejemplo n.º 1
0
		//echo NetPlayer_GetMediaPlayerValue('Status'); 
	} else if ($id=="rc_mp_length") {
		echo NetPlayer_GetIPSComponentPlayer()->GetTrackLength();
		//echo NetPlayer_GetMediaPlayerValue('Titellänge'); 
	} else if ($id=="rc_mp_interpret") {
		echo htmlentities(GetValue(NP_ID_CDINTERPRET), ENT_COMPAT, 'ISO-8859-1'); 
	} else if ($id=="rc_mp_album") {
		echo htmlentities(GetValue(NP_ID_CDALBUM), ENT_COMPAT, 'ISO-8859-1'); 

	// Mediaplayer Source
	} else if ($id=="rc_mp_player") {
		NetPlayer_SwitchToMP3Player();
	} else if ($id=="rc_mp_select") {
		NetPlayer_SwitchToMP3Selection();
	} else if ($id=="rc_mp_radio") {
		NetPlayer_SwitchToRadio();

	// 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") {
Ejemplo n.º 2
0
	function NetPlayer_SetSource($value) {
	   if (GetValue(NP_ID_SOURCE)<>$value) {
			switch ($value) {
			   case NP_IDX_SOURCECD:
               NetPlayer_SwitchToMP3Player(true, true);
			      break;
			   case NP_IDX_SOURCERADIO:
			   	NetPlayer_SwitchToRadio();
			      break;
				default:
				   IPSLogger_Err(__file__, "Unknown SourceValue '$value'");
				   exit;
			}
	   }
	}