📄 vod.jsp
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ include file="common_imports.jsp" %>
<html>
<head>
<title>Video On Demand</title>
</head>
<meta http-equiv="pragma" content="no-cache">
<body background="images/bg800.jpg">
<center><table CELLSPACING=0 CELLPADDING=0 WIDTH="100%" BGCOLOR="#000000" >
<tr>
<td><img SRC="images/leftlogo.png" height=32 width=71></td>
<td>
<center><img SRC="images/homemoviesbar.png" BORDER=0 height=32 width=260></center>
</td>
<td>
<div align=right><img SRC="images/smallsunlogo.png" BORDER=0 height=32 width=71></div>
</td>
</tr>
</table></center>
<center>
<br>
</tr>
<%
String rtsplink1 = response.encodeUrl("MoviePurchaseMenu.jsp");
%>
<td style="vertical-align: top;"><big><big><big><a
href="MoviePurchaseMenu.jsp"><img align="right"
style="border: 2px solid ; font-family: helvetica,arial,sans-serif;
width: 40px; height: 40px;"
alt="Shopping"
src="images/sm-sales.gif"><span
</span></a></td>
<td style="vertical-align: top;"><a href="<%=
response.encodeUrl("MainMenuVideo.jsp")
%>"><img
align="left" style="border: 2px solid ; width: 40px; height: 40px;"
alt="Movies"
src="images/sm-film.gif"></a>
</td>
<b><font color="#000000">Welcome <%=me.firstname%>
<%--- EUR <%=billing.getAccountBalance(me)%> left on your prepaid account --%>
</font></b>
<br><br>
<table BORDER WIDTH="80%" >
<tr>
<td><b>
<CENTER><H1><U>On Demand Movies<U></H1></CENTER>
<%
for (int i=0; i<me.categories.length; i++) {
Movie[] movies = mediacat.getMovieList(me.categories[i].genreid);
if (movies.length > 0) {
%>
</FONT>
<font color="#000000" size=5>
<%=me.categories[i].genrename%> : <br>
</font>
<font color="#000000" size=5>
<%
for (int j=0; j<movies.length; j++) {
Movie movie = mediacat.getMovieMetadata(movies[j].id);
//String rtspip = mediacat.getMovieServerIp(movie);
// String rtspurl = "rtsp://"+rtspip+":11111//152.70.40.215/" + movie.movieurl + ";servertype=MediaBase;";
// String rtspurl = mediacat.getMovieServerURL(movie) +"?userId="+me.id; //commented//
// String rtsplink = "<A HREF=\"" + rtspurl + "\">" + movie.fulltitle + "</A>"; //commented//
String rtsplink = response.encodeUrl("VODDescription.jsp") + "?movieid="+ movie.id;
%>
<CENTER><A
HREF="<%=rtsplink%>"><%=movie.fulltitle%></A></CENTER>
<%
} // end for
%>
</font>
<%
} // end if
} // end for
%>
</b></td>
</tr>
<TR>
<B><TD>
<FONT SIZE=5><CENTER><H1><U>Past Sessions</U></H1></CENTER>
<%
RTSPSessionObject[] rtspSessionObjects = rsse.getStoredRTSPSessions(String.valueOf(me.id));
for (int i=0; i<rtspSessionObjects.length; i++) {
try {
String movieName = rtspSessionObjects[i].getMovieId();
long movieId = mediacat.getMovieId(movieName);
Movie movie = mediacat.getMovieMetadata(movieId);
String rtspurl = mediacat.getMovieServerURL(movie);
String rtsplink = "<A HREF=\"" + rtspurl +
"?smpte="+rtspSessionObjects[i].getSmpte()+"?userId="+me.id+"\">" +
movie.fulltitle + "</A>";
%>
<CENTER><%=rtsplink%></CENTER><BR>
<%
} catch (Exception e) {
e.printStackTrace();
}
}
%>
</TD></B>
</TR>
</table></center>
<br>
<center>
<p><font color="#FFFFFF"><font size=-2>(C) 2003, Copyrights Sun Microsystems, Inc.</font></font></center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -