Not logged in. · Lost password · Register
Forum: Features request RSS
Easy Album Art
Page:  1  2  next 
Keefy #1
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
Hi Folks,

Got a good idea to help everyone incorporate album art into their skins.

All that it would take would be a special gif/jpg that can be downloaded from BrowseAmp. Say for example you had a folder:

Hard Days Night/
      01 - Track 1
      02 - Track 2
      _folderListImage.jpg
      _folderOpenImage.jpg

And the user browses to that directory in the BrowseAmp Browser. You could configure (within BrowseAmp itself) a special link e.g.

http://localhost/_folderListImage.jpg

that would retrieve the image in the current directory for the Browser.

I suggest using the example names I used because of the Andromeda mp3 streaming tool, which is an mp3 browsing and network streaming tool. It uses these file names, so integration between the two would be easy. Andromeda doesn't control Winamp, all it does is gives you a web interface to your library, which can be selected as a *.m3u playlist, which a local Winamp can play. You probably wouldn't want to directly integrate the two tools, they do very different things, but some folks run both.

The two names do different things. The _folderListImage.jpg file is intended for when you are browsing the directory above the interested one. It would generally be a small thumbnail, which could even be created automatically from _folderOpenImage.jpg if it didn't already exist. I'd like to put this in as a hover effect on the link, so when you hover the mouse above the album name, a box somewhere displays the image.

To implement this, you would need to have an additional tag that is usable in the Browser, which would be unique for each line of the table. This would be a link to the image e.g. <foldername>/_folderListImage.jpg

The _folderOpenImage.jpg is the larger one, intended for when you are in the particular folder. This could be retrieved list the example localhost URL I mentioned earlier. If the image cannot be found in the directory, returning a transparent image would be useful.

Any thoughts?
Avatar
Henry (Administrator) #2
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
We had these thought before but I had no good idea yet how to do this.

The problem is, you cannot use something like <img src="<#CurrentBrowserDirectory>/artist.jpg"> because the webserver root is NOT equal with the MP3 root folder!

So I have to implement some URL rewriting to serve the images.

I'll think about that...
Keefy #3
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
Yeah, I see what you mean. You'd need to have the BrowseAmp server process aware of this, and it would know which file to serve. As it can already see the media library, you just need to provide a bridge between the web browser and the file.

Kind of like:
if (requestedFile == "_folderOpenImage.jpg")
    requestedFile = currentBrowserDirectory/_folderOpenImage.jpg

As far as the web browser is concerned, the URL is http://localhost/_folderOpenImage.jpg
Avatar
Henry (Administrator) #4
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yes, but I think it's a pain to force the user to use exactly this predefined filename(s). I can see thousands of requests in the forum to support other filenames like cover.jpg or me_at_this_gig.jpg ... Know what I mean?  ;)

I hope to find a solution to fit the Browseamp concept of real independence.
Avatar
Henry (Administrator) #5
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yeah, got an idea!  :smart:

There is a new command that can be added to any img tag and that rewrites the url of the image/file.

Looks like: <img src="front.jpg?src=<#CurrentBrowserDirectory urlencoded=1>">
and will show front.jpg in every folder you browse. Of course you can add this tag to every browser row to show a minimized pic in the directory.

In case the requested file does not exist, BrowseAmp uses a 1x1 clear image located in %WINAMPDIR%\plugins\browseamp called clearpixel.gif.

Does that sound good?!  :-D
Keefy #6
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
:-D

once again:

 :-D

With you making the filename of the image part of the URL, I can parameterize it and allow a user-definable settings box on a config page. Neat!
Avatar
Henry (Administrator) #7
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I forgot, you cannot go above MP3 root with the src path. Just because security...
Guest (Guest) #8
No profile available.
Link to this post
Makes sense. Any idea on an ETA for the new build? I'm quite interested in this image stuff, plus I've got a javascript scroll bar working, so the new jumpto feature would be cool as well.
Avatar
Henry (Administrator) #9
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I'm still doing some tests. Is this evening ok?
Keefy #10
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
Hell, got made redundant yesterday, any time is good.  ;)

Saying that, I'll probably be hitting the bars tonight for a good drink, so don't worry about getting something out quickly, perfection takes time...  B)
Avatar
srauco #11
Member since May 2003 · 5 posts
Group memberships: Members
Show profile · Link to this post
Well after some reading in the help files, I came upon <img src="front.jpg?src=<#CurrentBrowserDirectory urlencoded=1>"> for trying to display the album art for the song being played.  Obivously it didn't work! :lol:

What about a feature for the path of the current track?  This would let you store cover art in the folder the song's folder and retrieve it with something like this:

<img src="<#CurrentSongDirectory>/cover.jpg">

Just a thought.  Besides that I have a killer skin underway :)
This post was edited on 2003-05-10, 14:10 by Unknown user.
Avatar
Henry (Administrator) #12
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yeah, that would be a nice improvement for cover art. I'll work on that!

ps: can't wait to see a screenshot of your killer skin...
selsrog (Guest) #13
No profile available.
Link to this post
Hi there,

be aware that i'm very happy with your development here. It is the right software at the right time (for me that is).
small remark on the 'album art'. Why can't you use the build in 'album' tag?

I've noticed that 'Halo 8 Production (see http://projects.halo8.net/?codeName=halo8wwwinamp) ' re-uses the album art which you can save along with mp3 file (as a 'property').

This is a lot easier than saving separate files... Just a thought... know that i'm not a developer!  :rolleyes:

Keep up the good work!

Roger

edit: link corrected --henry
This post was edited on 2003-06-03, 05:52 by Unknown user.
Avatar
Azimuth #14
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
I just poked around on the page you linked to (once I figured out that the link has a ")" at the end that needs to be removed), installed wwwinamp, and, I did not see the album art thing you speak of.
Avatar
Azimuth #15
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
WWWinamp's album art works! :-D Some nice skin ideas in there, though.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  1  2  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 266.9 ms (138.7 ms) · 104 database queries in 111.1 ms
Current time: 2018-02-25, 21:32:43 (UTC +00:00)