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

📄 video.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.web.HPPageContext"%>
<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request">
				<jsp:setProperty name="hppc" property="temporaryPage" value="true" />
				<jsp:setProperty name="hppc" property="request" value="<%=request%>" />
				<jsp:setProperty name="hppc" property="focusSetOnPage" value="true" />
</jsp:useBean>
<%
if( request.getParameter("Valid") != null ) {
	int video_output_scale = WebUtil.getParam(request, "video_output_scale", HPConf.getInt(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE));
	HPConf.set( HPConf.OPTIONS_VIDEO_OUTPUT_SCALE, video_output_scale ) ;
	int denc_brightness = WebUtil.getParam(request, "denc_brightness", HPConf.getInt(HPConf.OPTIONS_VIDEO_BRIGHTNESS));
	HPConf.set( HPConf.OPTIONS_VIDEO_BRIGHTNESS, denc_brightness ) ;
	int denc_contrast = WebUtil.getParam(request, "denc_contrast", HPConf.getInt(HPConf.OPTIONS_VIDEO_CONTRAST));
	HPConf.set( HPConf.OPTIONS_VIDEO_CONTRAST, denc_contrast ) ;
	int denc_saturation = WebUtil.getParam(request, "denc_saturation", HPConf.getInt(HPConf.OPTIONS_VIDEO_SATURATION));
	HPConf.set( HPConf.OPTIONS_VIDEO_SATURATION, denc_saturation ) ;
	if( hppc.getUserAgent().indexOf("-ppp") == -1 ){
		String display_scaling = WebUtil.getParam(request, "display_scaling", "");
		HPConf.set( HPConf.OPTIONS_VIDEO_OUTPUT_SCALE_CONVERSION, display_scaling ) ;
		String display_aspect_ratio = WebUtil.getParam(request, "display_aspect_ratio", "");
		HPConf.set( HPConf.OPTIONS_VIDEO_ASPECT_RATIO, display_aspect_ratio ) ;
	} else {
		String display_aspect_ratio_conversion = WebUtil.getParam(request, "display_aspect_ratio_conversion", "");
		HPConf.set( HPConf.OPTIONS_VIDEO_ASPECT_RATIO_CONVERSION, display_aspect_ratio_conversion ) ;
	}
	HPConf.saveSilently() ;
}
%>
<form action="info.jsp">
<input type=hidden name=MODE value=VIDEO>
<input type=hidden name=video_output_scale value=<%=HPConf.getInt(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE) %>>
<input type=hidden name=denc_brightness value=<%=HPConf.getInt(HPConf.OPTIONS_VIDEO_BRIGHTNESS) %>>
<input type=hidden name=denc_contrast value=<%=HPConf.getInt(HPConf.OPTIONS_VIDEO_CONTRAST) %>>
<input type=hidden name=denc_saturation value=<%=HPConf.getInt(HPConf.OPTIONS_VIDEO_SATURATION) %>>
<%if( hppc.getUserAgent().indexOf("-ppp") == -1 ){ 
System.out.println( "format:"+(HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO).equals("")?HPPageContext.getDisplay_aspect_ratio_def():HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO)) ) ;
System.out.println( "Conversion:"+(HPConf.getString(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE_CONVERSION).equals("")?HPPageContext.getDisplay_scaling_def():HPConf.getString(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE_CONVERSION)) );
%>
<input type=hidden name=display_scaling value=<%=HPConf.getString(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE_CONVERSION).equals("")?HPPageContext.getDisplay_scaling_def():HPConf.getString(HPConf.OPTIONS_VIDEO_OUTPUT_SCALE_CONVERSION) %>>
<input type=hidden name=display_aspect_ratio value=<%=HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO).equals("")?HPPageContext.getDisplay_aspect_ratio_def():HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO) %>>
<%} else { 
System.out.println( "Conversion:"+(HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO_CONVERSION).equals("")?HPPageContext.getDisplay_aspect_ratio_conversion_def():HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO_CONVERSION).equals("")) ) ;
%>
<input type=hidden name=display_aspect_ratio_conversion value=<%=HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO_CONVERSION).equals("")?HPPageContext.getDisplay_aspect_ratio_conversion_def():HPConf.getString(HPConf.OPTIONS_VIDEO_ASPECT_RATIO_CONVERSION).equals("") %>>
<%} %>
<table>
	<tr>
		<%
		if (hppc.getUserAgent().indexOf("-ppp") == -1) {
		%>
		<td width=100>Format</td>
		<td width=100><select name="display_aspect_ratio" bgcolor="#333333FF">
						<option value="0/0">Auto
						<option value="4/3">4/3
						<option value="16/9">16/9
		</select></td>
		<td width=100>Conversion</td>
		<td width=100><select name="display_scaling" bgcolor="#333333FF">
						<option value="letterbox">Letterbox
						<option value="panscan">Panscan
						<option value="fullscreen">Fullscreen
		</select></td>
		<%
		} else {
		%>
		<td width=400 colspan=2>
		<table cellpadding=0>
			<tr>
				<td><input type=radio name=display_aspect_ratio_conversion value=letterbox>Letterbox</td>
				<td><input type=radio name=display_aspect_ratio_conversion value=combined>Combined</td>
				<td><input type=radio name=display_aspect_ratio_conversion value=panscan>Pan Scan</td>
				<td><input type=radio name=display_aspect_ratio_conversion value=ignore>16/9</td>
			</tr>
		</table>
		</td>
		<%
		}
		%>
		<td width=60>Zoom</td>
		<td><INPUT type="hslider" bgcolor="#333333FF" name="video_output_scale" min="30" max="160" grad="10" /></td>
	</tr>
</table>
<%if( hppc.isFreeBoxHD() ) {%>
<table>
<tr><td width=100>Codec Vid閛</td><td width=100><select name="stream_vid_codec" bgcolor="#00000030">
										<option value="mp1v">MPEG-1
										<option value="mp2v">MPEG-2
										<option value="mp4v">MPEG-4
										<option value="h264">H.264
									</select>
</td>
</tr>
</table>
<%} %>
<table cellpadding=0>
	<tr>
		<td colspan=3 align=center><img height=5></td>
	</tr>
	<tr>
		<td align=center>Lumi鑢e</td>
		<td colspan=2><INPUT type="hslider" bgcolor="#333333FF" name="denc_brightness" min="0" max="255" grad="11" /></td>
	</tr>
	<tr>
		<td align=center>Contraste</td>
		<td colspan=2><INPUT type="hslider" bgcolor="#333333FF" name="denc_contrast" min="-128" max="127" grad="11" /></td>
	</tr>
	<tr>
		<td align=center>Couleur</td>
		<td colspan=2><INPUT type="hslider" bgcolor="#333333FF" name="denc_saturation" min="0" max="255" grad="11" /></td>
	</tr>
	<tr>
		<td colspan=3 align=center><img height=5></td>
	</tr>
	<tr>
		<td colspan=3 align=right><input type=submit value="Sauvegarder" name="Valid"></td>
	</tr>
</table>
</form>

⌨️ 快捷键说明

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