コード例 #1
0
	} else if ($id=="rc_mp_status") {
		echo GetValue(NP_ID_CONTROL);
		//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") {
コード例 #2
0
ファイル: NetPlayer.inc.php プロジェクト: KOS-CH/IPSLibrary
	function NetPlayer_SetCategory($category) {
		IPSLogger_Trc(__file__, "Set NetPlayer Category '$category'");
		SetValue(NP_ID_CDCATEGORYNAME, $category);
		SetValue(NP_ID_CDDIRECTORYIDX, 0);
		NetPlayer_RefreshCategoryProfile();
		NetPlayer_RefreshCDListProfile();
		NetPlayer_RefreshCDListValue();
		NetPlayer_SwitchToMP3Selection();
		NetPlayer_NavigateCDBack();
	}