Page 1 of 1

How do "Players" work?

PostPosted: Fri Jan 27, 2012 1:31 pm
by SmellyCat
I'm trying to set up Subsonic for some friends (I'm the admin). It seems every time somebody logs in from a different computer, a new player is created. Is there any way to make it where all players have the same settings and everyone logging in sees the same thing without having to go in, check for new players that might have popped up, and changing it's settings?

Re: How do "Players" work?

PostPosted: Fri Jan 27, 2012 1:52 pm
by ytechie
The players are there for many reasons. Honestly, it gets a little complicated. I am currently working on a different approach to players, but it isn't easy.

Can you explain what you want to happen in more detail?

Re: How do "Players" work?

PostPosted: Fri Jan 27, 2012 4:57 pm
by SmellyCat
Thanks for responding.

Ideally, I would like for any guest to be able to log in from any computer/device and get the exact same interface. I'll explain why I would like this: My album art system is all messed up and it looks really messy when album art is enabled in Subsonic. There's duplicates and crap all over the place and no amount of configuration seems to fix it. I set both the admin player and the guest player to not display any album art. However, when a friend logs in from some new computer/device, it generates a new player with default settings for that particular device and they see the messy album art.

I guess what I'd like to see is an option to have a single player (interface) for all users.

Re: How do "Players" work?

PostPosted: Fri Jan 27, 2012 6:27 pm
by ytechie
Getting rid of album art altogether can be done by modifying one of the files.

Unfortunately, setting the default cover art size that a player uses when it is created isn't possible. I looked into it thoroughly at one point because I wanted all players to user the large setting. The workaround I chose was to manually set the cover art sizes with one command using the database interface.

Here is how to disable album art for everyone:

We are going to edit main.jsp.

Here is the part we are going to edit:

Code: Select all
    <td style="vertical-align:top;width:100%">
        <c:forEach items="${model.coverArts}" var="coverArt" varStatus="loopStatus">
            <div style="float:left; padding:5px">
                <c:import url="coverArt.jsp">
                    <c:param name="albumPath" value="${coverArt.parentFile.path}"/>
                    <c:param name="albumName" value="${coverArt.parentFile.name}"/>
                    <c:param name="coverArtSize" value="${model.coverArtSize}"/>
                    <c:param name="coverArtPath" value="${coverArt.path}"/>
                    <c:param name="showLink" value="${coverArt.parentFile.path ne model.dir.path}"/>
                    <c:param name="showZoom" value="${coverArt.parentFile.path eq model.dir.path}"/>
                    <c:param name="showChange" value="${(coverArt.parentFile.path eq model.dir.path) and model.user.coverArtRole}"/>
                    <c:param name="showCaption" value="true"/>
                    <c:param name="appearAfter" value="${loopStatus.count * 30}"/>
                </c:import>
            </div>
        </c:forEach>

        <c:if test="${model.showGenericCoverArt}">
            <div style="float:left; padding:5px">
                <c:import url="coverArt.jsp">
                    <c:param name="albumPath" value="${model.dir.path}"/>
                    <c:param name="coverArtSize" value="${model.coverArtSize}"/>
                    <c:param name="showLink" value="false"/>
                    <c:param name="showZoom" value="false"/>
                    <c:param name="showChange" value="${model.user.coverArtRole}"/>
                    <c:param name="appearAfter" value="0"/>
                </c:import>
            </div>
        </c:if>
    </td>


All you have to do is add "<!--" one line before this, and add "-->" one line after this.

Hope this helps! :D

Re: How do "Players" work?

PostPosted: Sat Jan 28, 2012 12:37 am
by SmellyCat
That worked, thank you!