diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-07-27 14:33:25 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-07-27 14:33:38 -0700 |
commit | 4738428c2c205f42200386ae09b44b9ec07b9144 (patch) | |
tree | a6402978fe1b4655f90c3c8a181f4d246fbc5e89 /subsonic-main/src/main/webapp/WEB-INF/jsp/rest/videoPlayer.jsp | |
parent | 82ec8315f777c319f2372540098e21111019d629 (diff) | |
download | dsub-4738428c2c205f42200386ae09b44b9ec07b9144.tar.gz dsub-4738428c2c205f42200386ae09b44b9ec07b9144.tar.bz2 dsub-4738428c2c205f42200386ae09b44b9ec07b9144.zip |
Move subsonic-android to root
Diffstat (limited to 'subsonic-main/src/main/webapp/WEB-INF/jsp/rest/videoPlayer.jsp')
-rw-r--r-- | subsonic-main/src/main/webapp/WEB-INF/jsp/rest/videoPlayer.jsp | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/subsonic-main/src/main/webapp/WEB-INF/jsp/rest/videoPlayer.jsp b/subsonic-main/src/main/webapp/WEB-INF/jsp/rest/videoPlayer.jsp deleted file mode 100644 index ccd18a93..00000000 --- a/subsonic-main/src/main/webapp/WEB-INF/jsp/rest/videoPlayer.jsp +++ /dev/null @@ -1,142 +0,0 @@ -<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>
-
-<html>
-<head>
- <%@ include file="../include.jsp" %>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" href="../<spring:theme code="styleSheet"/>" type="text/css">
- <link rel="shortcut icon" href="../<spring:theme code="faviconImage"/>">
-
- <c:url value="/rest/stream.view" var="streamUrl">
- <c:param name="c" value="${model.c}"/>
- <c:param name="v" value="${model.v}"/>
- <c:param name="id" value="${model.id}"/>
- </c:url>
-
- <script type="text/javascript" src="<c:url value="/script/swfobject.js"/>"></script>
- <script type="text/javascript" src="<c:url value="/script/prototype.js"/>"></script>
- <script type="text/javascript" language="javascript">
-
- var player;
- var position;
- var maxBitRate = ${model.maxBitRate};
- var timeOffset = ${model.timeOffset};
-
- function init() {
- var flashvars = {
- id:"player1",
- skin:"<c:url value="/flash/whotube.zip"/>",
- screencolor:"000000",
- autostart:false,
- bufferlength:4,
- backcolor:"<spring:theme code="backgroundColor"/>",
- frontcolor:"<spring:theme code="textColor"/>",
- provider:"video"
- };
- var params = {
- allowfullscreen:"true",
- allowscriptaccess:"always"
- };
- var attributes = {
- id:"player1",
- name:"player1"
- };
-
- swfobject.embedSWF("<c:url value="/flash/jw-player-5.6.swf"/>", "placeholder1", "360", "240", "9.0.0", false, flashvars, params, attributes);
- }
-
- function playerReady(thePlayer) {
- player = $("player1");
- player.addModelListener("TIME", "timeListener");
-
- <c:if test="${model.autoplay}">
- play();
- </c:if>
- }
-
- function play() {
- var list = new Array();
- list[0] = {
- file:"${streamUrl}&maxBitRate=" + maxBitRate + "&timeOffset=" + timeOffset + "&p=${model.p}" + "&u=${model.u}",
- duration:${model.duration} - timeOffset,
- provider:"video"
- };
- player.sendEvent("LOAD", list);
- player.sendEvent("PLAY");
- }
-
- function timeListener(obj) {
- var newPosition = Math.round(obj.position);
- if (newPosition != position) {
- position = newPosition;
- updatePosition();
- }
- }
-
- function updatePosition() {
- var pos = parseInt(timeOffset) + parseInt(position);
-
- var minutes = Math.round(pos / 60);
- var seconds = pos % 60;
-
- var result = minutes + ":";
- if (seconds < 10) {
- result += "0";
- }
- result += seconds;
- $("position").innerHTML = result;
- }
-
- function changeTimeOffset() {
- timeOffset = $("timeOffset").getValue();
- play();
- }
-
- function changeBitRate() {
- maxBitRate = $("maxBitRate").getValue();
- timeOffset = parseInt(timeOffset) + parseInt(position);
- play();
- }
-
- </script>
-</head>
-
-<body class="mainframe bgcolor1" onload="init();">
-<h1>${model.video.title}</h1>
-
-<div id="wrapper" style="padding-top:1em">
- <div id="placeholder1"><span class="warning"><a href="http://www.adobe.com/go/getflashplayer"><fmt:message key="playlist.getflash"/></a></span></div>
-</div>
-
-<div style="padding-top:1.3em;padding-bottom:0.7em;font-size:16px">
-
- <span id="position" style="padding-right:0.5em">0:00</span>
- <select id="timeOffset" onchange="changeTimeOffset();" style="padding-left:0.25em;padding-right:0.25em;margin-right:0.5em;font-size:16px">
- <c:forEach items="${model.skipOffsets}" var="skipOffset">
- <c:choose>
- <c:when test="${skipOffset.value eq model.timeOffset}">
- <option selected="selected" value="${skipOffset.value}">${skipOffset.key}</option>
- </c:when>
- <c:otherwise>
- <option value="${skipOffset.value}">${skipOffset.key}</option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select>
-
- <select id="maxBitRate" onchange="changeBitRate();" style="padding-left:0.25em;padding-right:0.25em;margin-right:0.5em;font-size:16px">
- <c:forEach items="${model.bitRates}" var="bitRate">
- <c:choose>
- <c:when test="${bitRate eq model.maxBitRate}">
- <option selected="selected" value="${bitRate}">${bitRate} Kbps</option>
- </c:when>
- <c:otherwise>
- <option value="${bitRate}">${bitRate} Kbps</option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select>
-</div>
-
-</body>
-</html>
|