Page 1 of 1

Subsonic webclient - play an album - quick!

PostPosted: Thu Jan 12, 2012 9:28 pm
by slimeee
Hi - after using SUbsonic for a year - I'm still missing one thing:

* When I list my albums - I want to play it directly instead of waiting for the album to load a tracklist a tracklist at the bottom of the window.

How about adding a "play" button somwhere - on top of the coverart - ot before / after the ARTIST + ALBUM NAME?

Here'sa quick mockup in paintbrush:

Image

Re: Subsonic webclient - play an album - quick!

PostPosted: Fri Jan 13, 2012 12:41 am
by ytechie
Interesting. I will think about how to add a link to the coverart in home.jsp. Thanks for the idea!

Re: Subsonic webclient - play an album - quick!

PostPosted: Fri Jan 13, 2012 2:45 am
by BKKKPewsey
It is a pity its not easy to implement right click options eg right click album cover select play now.
Hmm! perhaps there is a jquery right click option :wink:

Re: Subsonic webclient - play an album - quick!

PostPosted: Fri Jan 13, 2012 2:48 am
by ytechie
Good idea. I'll look into that too!

Re: Subsonic webclient - play an album - quick!

PostPosted: Sat Jan 14, 2012 6:20 pm
by osh
A play icon right before the album name would work awesome for me too...

Re: Subsonic webclient - play an album - quick!

PostPosted: Sun Jan 15, 2012 1:24 am
by ytechie
This is how to add a play icon to the left of the album names in home.jsp:

We are going to edit home.jsp. Here is the part we are going to edit:

Code: Select all
<c:choose>
   <c:when test="${empty album.artist and empty album.albumTitle}">
      <div class="detail"><fmt:message key="common.unknown"/></div>
   </c:when>
   <c:otherwise>
      <div class="detail"><em><str:truncateNicely lower="15" upper="15">${album.artist}</str:truncateNicely></em></div>
      <div class="detail">
      
      :)
      
      <str:truncateNicely lower="15" upper="15">${album.albumTitle}</str:truncateNicely></div>
   </c:otherwise>
</c:choose>


I put a smiley at the line that we are going to insert this code:

Code: Select all
<c:import url="playAddDownload.jsp">
   <c:param name="path" value="${album.path}"/>
   <c:param name="video" value="false"/>
   <c:param name="playEnabled" value="true"/>
   <c:param name="addEnabled" value="false"/>
   <c:param name="downloadEnabled" value="false}"/>
   <c:param name="asTable" value="false"/>
</c:import>


Note: When trying to play a video, it will stop the currently playing song, and clear your playlist. I wasn't able to tell it to detect if the child files are videos.

Hope this helps! :D

Re: Subsonic webclient - play an album - quick!

PostPosted: Sun Jan 15, 2012 6:24 pm
by osh
Awesome!!! ytechie - that patch worked for me, you rock!!! Image I'm getting closer to that point where Jinzora goes away, Subsonic becomes my replacement media manager, and will donate to the cause.

Re: Subsonic webclient - play an album - quick!

PostPosted: Sun Jan 15, 2012 7:44 pm
by ytechie
:D

Re: Subsonic webclient - play an album - quick!

PostPosted: Mon Jan 16, 2012 8:33 pm
by slimeee
Absolutely awesome - works super. So fast... now I don't have to wait for the album to load.

Thanks a bunch! :lol:

Re: Subsonic webclient - play an album - quick!

PostPosted: Sat Feb 08, 2014 4:10 am
by osh
Bump - I recently upgraded to 4.8 (and may upgrade to 4.9 if recommended after this conversation) and reimplemented this "feature". I may have done it incorrectly, but I get the play icon where it was before, but that no longer does anything for me.

Do I need to add / change something else for this to work?

edit note: when I hover over the icon, the text reads play. The link at the bottom of my browser reads javascript:noop()...