
I redo it again => Still the same
My webPlayer.jsp:
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>
<html>
<head>
<%@ include file="head.jsp" %>
<title>Subsonic</title>
<c:set var="width" value="600"/>
<c:set var="height" value="155"/>
<script type="text/javascript" src="<c:url value="/script/scripts.js"/>"></script>
<script type="text/javascript" language="javascript">
function detach() {
popupSize("webPlayer.view?detached=", 'player', ${width + 20}, ${height + 60});
location.href = "playlist.view?";
}
</script>
<%-- For JW FLV Web Player --%>
<script type="text/javascript">
var so = new SWFObject('/embed/player.swf','mpl','470','470','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','false');
so.addParam('flashvars','&playlist=bottom');
so.write('player');
</script>
<%-- End For JW FLV Web Player --%>
</head>
<body class="bgcolor2" <c:if test="${model.detached}">onload="window.focus();window.moveTo(300, 200);"</c:if>>
<c:if test="${not model.detached and not model.default}">
<table><tr>
<td style="padding-right:2em"><div class="back"><a href="playlist.view?"><fmt:message key="webplayer.back"/></a></div></td>
<td style="padding-right:2em"><div class="forward"><a href="javascript:detach()"><fmt:message key="webplayer.detach"/></a></div></td>
</tr></table>
</c:if>
<c:url var="playlistUrl" value="/xspfPlaylist.view">
<%-- Hack to force Flash player to reload playlist. --%>
<c:param name="dummy" value="${model.dummy}"/>
</c:url>
<%-- For JW FLV Web Player --%>
<c:url var="playerUrl" value="/flash/player.swf?playlist_url=${playlistUrl}&autostart=true"/>
<%-- End JW FLV the Web Player --%>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="${width}" height="${height}">
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="${playerUrl}"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#E6E6E6"/>
<%-- For JW FLV Web Player --%>
<embed src="${playerUrl}" quality="high" bgcolor="#E6E6E6" name="xspf_player" allowscriptaccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"
align="middle" height="${height}" width="${width}" flashvars="file=${playlistUrl}&repeat=list&autostart=true&playlist=none&searchbar=false&autoscroll=false&displaywidth=130&overstretch=true&thumbsinplaylist=false&showicons=false&fullscreen=false"></embed>
<%-- End JW FLV the Web Player --%>
</object>
<c:if test="${model.detached}">
<p style="text-align:center;margin-top:1em">
<a href="javascript:self.close()">[<fmt:message key="common.close"/>]</a>
</p>
</c:if>
</body>
</html>
My xspfPlaylist.jsp
<?xml version="1.0" encoding="utf-8"?>
<%@ include file="include.jsp" %>
<%@ page language="java" contentType="text/xml; charset=utf-8" pageEncoding="iso-8859-1" %>
<playlist version="0" xmlns="http://xspf.org/ns/0/">
<trackList>
<c:forEach var="song" items="${model.songs}">
<sub:url value="/stream" var="streamUrl">
<sub:param name="path" value="${song.musicFile.path}"/>
</sub:url>
<sub:url value="coverArt.view" var="coverArtUrl">
<sub:param name="size" value="200"/>
<c:if test="${not empty song.coverArtFile}">
<sub:param name="path" value="${song.coverArtFile.path}"/>
</c:if>
</sub:url>
<track>
<location>${streamUrl}</location>
<image>${coverArtUrl}</image>
<title>${song.musicFile.metaData.artist} - ${song.musicFile.title}</title>
<meta rel="type">mp3</meta>
</track>
</c:forEach>
</trackList>
</playlist>
I am desperate but never mind I will wait the next version !
Kaniass