📄 audio.jsp
字号:
<%@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:setProperty name="hppc" property="focusSetOnPage" value="true"/>
</jsp:useBean>
<%
VLCControl vlc = VLCControl.shareInstance();
VLCInfo info = (VLCInfo)request.getAttribute("VLCINFO") ;
if( request.getParameter("Valid") != null ) {
String audioSel = request.getParameter("audio") ;
vlc.getHtmlVLC("setaudio.html?"+request.getQueryString()) ;
boolean stereoChange = WebUtil.getParam(request, "stereomode", HPConf.getBool(HPConf.SERVICES_STEREO_MODE)) != HPConf.getBool(HPConf.SERVICES_STEREO_MODE) ;
if( stereoChange ) {
HPConf.set(HPConf.SERVICES_STEREO_MODE, WebUtil.getParam(request, "stereomode", HPConf.getBool(HPConf.SERVICES_STEREO_MODE)));
hppc.addMeta("stream_aud", (HPConf.getBool(HPConf.SERVICES_STEREO_MODE)?"69(mp2a,en)":"69(ac3,en)") ) ;
hppc.addMeta("aud",HPConf.getBool(HPConf.SERVICES_STEREO_MODE)?"69(en,mp2)":"69(en,ac3)") ;
HPConf.saveSilently();
VLCControl.shareInstance().action("control=stop") ;
HPSession.set("RELOADBG",true) ;
hppc.setRefresh(2,"info.jsp?MODE=AUDIO") ;
}
info = vlc.getInfo();
}
%>
<form action="info.jsp">
<input type=hidden name=MODE value=AUDIO>
<table>
<tr>
<td width=100>Pistes</td>
<td>
<%if( info.getAudioInfos().size()>0 ) { %>
<table cellpadding=0>
<%int i=0 ;
while( i<info.getAudioInfos().size() ) {
%>
<tr>
<% for( int j=i ; j<(i+3) ; j++ ) {
if( j<info.getAudioInfos().size() ) {
VLCInfo.AudioInfo sbinfo = info.getAudioInfos().get(j) ;
String selected = sbinfo.isSelected() ? "checked" : "" ;
String piste= StringUtil.gsub(sbinfo.getName(), "Piste","").trim() ;
piste= StringUtil.gsub(piste, "[","") ;
piste= StringUtil.gsub(piste, "]","") ;
piste= piste.substring(0,Math.min(12,piste.length())) ;
%>
<td><input type="radio" name="audio" value="<%=sbinfo.getId() %>" <%=selected%>><%=piste %></td>
<%} else {%>
<td> </td>
<%}
}
i+=3 ;%>
</tr>
<%} %>
</table>
<%} else { %>
Aucune
<%} %>
</td>
</tr>
<tr>
<td width=100>Sortie</td>
<td><table>
<tr>
<td colspan=2><small>Activation sortie num閞ique<br>(Lecture du m閐ia arr阾閑
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -