⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cfgdisplay.jsp

📁 HomePlayer is an extention of the FreePlayer software provided by the french internet provider Free
💻 JSP
字号:
<%@page contentType="text/html;charset=ISO-8859-15" pageEncoding="ISO-8859-1"%>
<%@page import="org.homeplayer.util.*"%>
<%@page import="org.homeplayer.data.*"%>
<%
VLCControl vlc = VLCControl.shareInstance();
VLCInfo info = vlc.getInfo();
String state = info.getState();
MediaItem media = info.getCurrentMedia();
boolean playingVideo = false;
if (state.equals(VLCInfo.STATE_PLAYING) && ((media instanceof Film) || (media instanceof FreeBoxTV) || (media instanceof Photo) 
		|| (media instanceof WEBClip) || (media instanceof WEBTV) || (media instanceof WEBVideoStream))) {
	playingVideo = true;
}
if (! playingVideo) {
	Photo mire = new Photo();
	mire.setPath(IOUtil.getRessourceFilePath("/images/mire_PM5544.gif"));
	mire.setTitle("mire PM5544");
	vlc.playMedia(mire);
	HPSession.set("RELOADBG",true) ;
}

boolean focusSet = false;

String type = WebUtil.getParam(request, "type", "SIZE");
int vos = HPConf.getInt(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE);
int sValue = WebUtil.getParam(request, "sValue", vos);
int sDelta = WebUtil.getParam(request, "sDelta", 0);
if (sDelta != 0) {
	sValue += sDelta;
}
if (sValue != vos) {
	focusSet = true;
	vos = sValue;
	vos = Math.min(100, vos);
	vos = Math.max(0, vos);
	HPConf.set(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE, vos);
	HPConf.saveSilently();
}

int bright = HPConf.getInt(HPConf.OPTIONS_VIDEO_BRIGHTNESS);
int bValue = WebUtil.getParam(request, "bValue", bright);
int bDelta = WebUtil.getParam(request, "bDelta", 0);
if (bDelta != 0) {
	bValue += bDelta;
}
if (bValue != bright) {
	focusSet = true;
	bright = bValue;
	bright = Math.min(255, bright);
	bright = Math.max(0, bright);
	HPConf.set(HPConf.OPTIONS_VIDEO_BRIGHTNESS, bright);
	HPConf.saveSilently();
}


int contr = HPConf.getInt(HPConf.OPTIONS_VIDEO_CONTRAST);
int cValue = WebUtil.getParam(request, "cValue", contr);
int cDelta = WebUtil.getParam(request, "cDelta", 0);
if (cDelta != 0) {
	cValue += cDelta;
}
if (cValue != contr) {
	focusSet = true;
	contr = cValue;
	contr = Math.min(127, contr);
	contr = Math.max(-127, contr);
	HPConf.set(HPConf.OPTIONS_VIDEO_CONTRAST, contr);
	HPConf.saveSilently();
}



int sat = HPConf.getInt(HPConf.OPTIONS_VIDEO_SATURATION);
int satValue = WebUtil.getParam(request, "satValue", sat);
int satDelta = WebUtil.getParam(request, "satDelta", 0);
if (satDelta != 0) {
	satValue += satDelta;
}
if (satValue != sat) {
	focusSet = true;
	sat = satValue;
	sat = Math.min(255, sat);
	sat = Math.max(0, sat);
	HPConf.set(HPConf.OPTIONS_VIDEO_SATURATION, sat);
	HPConf.saveSilently();
}


String ratio = HPConf.getString(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE_CONVERSION);
String ratValue = WebUtil.getParam(request, "ratValue", ratio);
if (!ratValue.equals(ratio)) {
	ratio = ratValue;
	HPConf.set(HPConf.OPTIONS_VIDEO_ASPECT_RATIO, ratio);
	HPConf.saveSilently();
}

String mode = HPConf.getString(HPConf.OPTIONS_VIDEO_OUTPUT_MODE);
String mValue = WebUtil.getParam(request, "mValue", mode);
if (!mValue.equals(mode)) {
	mode = mValue;
	HPConf.set(HPConf.OPTIONS_VIDEO_OUTPUT_MODE, mode);
	HPConf.saveSilently();
}

%>

<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request">
	<jsp:setProperty name="hppc" property="request" 		value="<%=request%>"/>
	<jsp:setProperty name="hppc" property="playPage" 		value="true"/>
	<jsp:setProperty name="hppc" property="menuTitle" 		value="Affichage"/>
	<jsp:setProperty name="hppc" property="serviceName" 	value="Options"/>
	<jsp:setProperty name="hppc" property="headerTitle" 	value="R間lage de l'Affichage"/>
</jsp:useBean>
<%
String pageUrl = request.getContextPath() + request.getRequestURI();
String localUrl = pageUrl + "?type=" + type;
%>
<jsp:include page="<%= hppc.getSkin().getSmallHeader() + "?width=400&valign=top&title=" + WebUtil.urlEncode("Affichage") %>" />
<table cellpadding="0" cellspacing="0">
	<tr>
		<% if (type.equals("SIZE")) { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=SIZE") %>" <% if (!focusSet) {%>focused<%}%>>Taille</a></td>
		<% } else { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=SIZE") %>"><font color="<%= hppc.color("#8888883F") %>">Taille</font></a></td>
		<% } %>
		<% if (type.equals("COLORS")) { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=COLORS") %>" <% if (!focusSet) {%>focused<%}%>>Couleurs</a></td>
		<% } else { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=COLORS") %>"><font color="<%= hppc.color("#8888883F") %>">Couleurs</font></a></td>
		<% } %>
		<% if (type.equals("FORMAT")) { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=FORMAT") %>" <% if (!focusSet) {%>focused<%}%>>Format</a></td>
		<% } else { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=FORMAT") %>"><font color="<%= hppc.color("#8888883F") %>">Format</font></a></td>
		<% } %>
		<% if (type.equals("MODE")) { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=MODE") %>" <% if (!focusSet) {%>focused<%}%>>Mode</a></td>
		<% } else { %>
			<td width="25%" align="center"><a href="<%= WebUtil.setParam(localUrl, "type=MODE") %>"><font color="<%= hppc.color("#8888883F") %>">Mode</font></a></td>
		<% } %>
	</tr>
</table>
<hr>
<form action="<%= pageUrl %>">
	<input type="hidden" name="type" value="<%= type %>">
	<table cellpadding="0" cellspacing="0">
<% if (type.equals("SIZE")) { %>
		<tr>
			<td align="right" width="120" height="100">
					Taille : 
			</td>
			<td align="left" >
						<a href="<%= WebUtil.setParam(localUrl, "sDelta=-10") %>" <% if (sDelta == -10) { %>focused<% } %>>-10</a>
						<a href="<%= WebUtil.setParam(localUrl, "sDelta=-5") %>" <% if (sDelta == -5) { %>focused<% } %>>-5</a>
						<a href="<%= WebUtil.setParam(localUrl, "sDelta=-1") %>" <% if (sDelta == -1) { %>focused<% } %>>-1</a>
						<input type="text" size="3" name="sValue" value="<%= vos %>">&nbsp;
						<a href="<%= WebUtil.setParam(localUrl, "sDelta=1") %>" <% if (sDelta == +1) { %>focused<% } %>>+1</a>
						<a href="<%= WebUtil.setParam(localUrl, "sDelta=5") %>" <% if (sDelta == +5) { %>focused<% } %>>+5</a>
						<a href="<%= WebUtil.setParam(localUrl, "sDelta=10") %>" <% if (sDelta == +10) { %>focused<% } %>>+10</a>
			</td>
		</tr>
<% } else if (type.equals("COLORS")) { %>
		<tr>
			<td align="right" width="120" height="33">
					Luminosit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -