videointro.jsp
来自「HomePlayer is an extention of the FreePl」· JSP 代码 · 共 30 行
JSP
30 行
<%@page contentType="text/html;charset=ISO-8859-15" pageEncoding="ISO-8859-1"%>
<%@page import="org.homeplayer.util.*"%>
<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:useBean>
<%
String mainpage = "/main.jsp" ;
VLCControl vlc = VLCControl.shareInstance();
hppc.setStopLink(WebUtil.setParam(hppc.getLocalURL(), "action=stop"));
if ("stop".equalsIgnoreCase(request.getParameter("action"))) {
vlc.kill();
hppc.setRefresh(0, mainpage) ;
} else {
VLCInfo info = vlc.getInfo();
if( info != null && info.getState().equals(VLCInfo.STATE_STOP) ) {
hppc.setRefresh(0, mainpage) ;
} else {
hppc.setRefresh(1, hppc.getLocalURL() ) ;
}
}
%>
<jsp:include page="/WEB-INF/jsp/empty.jsp" >
<jsp:param name="video" value="true" />
<jsp:param name="onOk" value="<%= WebUtil.setParam(hppc.getLocalURL(), "action=stop") %>" />
</jsp:include>
<%--<jsp:param name="onOk" value="<%= mainpage %>" />--%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?