Not logged in. · Lost password · Register
Forum: General discussion RSS
Browseamp 2 Beta
Page:  1  2  3  next 
Avatar
Henry (Administrator) #1
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Here is a beta version of the new

BrowseAmp 2.0


Not all functions are implemented but Skin developers can get an overview of the new skinning engine.

Enjoy!  :-D


ps: comments welcome!
Aaron #2
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
Hi Henry,
Will the current skins work in 2?
Do you have some docs that tell us about what is new in 2 so we can decide if we want to install or not?

thanks
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
genekeenan #3
Member since Mar 2003 · 18 posts
Group memberships: Members
Show profile · Link to this post
you can install it and still use your current version of browseamp
You can run them both simultaneously if you want too, just change the port number.

i have not looked at the code so i can't answer your skin question. Try it out and see.

gk
Avatar
Henry (Administrator) #4
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Ok, some more infos:

Can I use the current skins?
The current skins for BrowseAmp 1.xx do not work with the new version without modification.

Why a new structure?
I have changed the structure because it was a clutter having many skins installed. Now you have a separate directory for every skin. You don't need a skinname prefix for the files as is was before. Keeping the files together makes it easier to add/remove/test new skins.

Can I use the new BrowseAmp simultaneously with the older one?
Yes you can! Just chosse another port for the new/old BroweseAmp. The state (running/stopped) is saved on exit in the new version so you can turn it on or off whenever you like.

So what is new?!
The skinning engine was completely rewritten!
Not a single piece of HTML code is generated by BrowseAmp. Everything you want to see in the client browser hs to be defined in template files. These files are parsed by BrowseAmp and the HTML tags are replaced with their value. Even the browser/playlist is created from free customizable code snippets.
That new structure makes BrowseAmp FULL customizable! Just change the templates.
So you can create ordinary HTML pages as well as some XML output you can parse with an XML interpreter or whatever.  If you like to you can also create simple text files containing the current playlist.
There is no limit, the templates can be parsed recursively!

The FileBrowser supports symbolic links to directories (*.lnk files)!

The search function has more options.

Some other functions were optimized.

For more information see the tag/link reference in the help.


Conclusion
Because Winamp 2.90 is not yet released some functions do not work (tracklength is not displayed in the playlist). But I'm on it!
But I hope you like the new version!
Aaron #5
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
The new version seems to make it more difficult to build "intelligent" skins

Example:
In the previous version I could use...
<#ShuffleStatus onimg=/gfx/lighton.gif offimg=/gfx/lightoff.gif>

Now, if I want to change the icons depending on the status I will need to build js or vbs to do this same function.

Am I missing something or is this correct? Seems like you are removing nice features from the previous version.


Also,
Please disable the darn server reverting to the 'base' when it runs into a problem... this is a HUGE pain in the ass when trying to troubleshoot problems. Seriously Henry, this cannot be difficult to disable and add debug code to so we can at least find out what the problem is.
This is like if everytime you compiled your C code, it ran into a compile error it rebooted your PC. It is that much of a pain!
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #6
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yes, you missed something!
Please take look at the help, there you will find an example how to switch images.
And the new base skin uses this option for mono/stereo.

Here's the example:
<img src="gfx/<#Channels on_stereo=stereo.gif on_mono=mono.gif>">
Please consider that you can put the HTML tags wherever you like (here: inside an <img> tag).

Hey, the server does NOT return to the base skin. You'll get clean 404's if you request a non existing page. So no pain in the ass!  :thumbup:
Aaron #7
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
OK, got that one...

What happened to <#Status>?

I cannot find it... I want to show the status of the player (playing, paused, stopped)

thanks for the help, my skin is almost completey converted over already!
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Aaron #8
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
Three more things on the beta that I've found problems with...

1) Always reverts to 'base'... when I set it to my skin it will run my skin's first page only then reverts back to base... no 404 errors at all.
My tests...
  a) if I change my skin dir name to base, everything runs perfectly!
  B) watching the INI's time stamp and settings... when BrowseAMP closes, it always writes the INI file. If base is the skin set when Winamp opens then BrowseAMP always changes INI skin setting to base even if change the skin in the BrowseAMP config window and have never opened a web page! This is a bug that is easy to repro and happens everytime, did it about 6 or 7 times.
  c) the only way I found that a different skin will stay is if I close winamp, manually change the ini file, then open winamp... works perfectly after that.

2) Song lengths are always 0:00 on PlayList and Browser views (templates). Thus, the PlayList length always = 0:00 also. This is even happening on the 'base' skin that I have not modified at all.

3) Still have the old bug with Offset & Length in #Playlist - large length = offset not working at all.
  - this happens on my skin on several pages
  - also happens on the base skin! I modified base's playlist_template2.html to have length=100, not the default 10. bug shows itself then.
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #9
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
What happened to <#Status>?
Coming soon!
Always reverts to 'base'...
Fixed, comes with the next release!
Song lengths are always 0:00 on PlayList and Browser
There is no Winamp API function to read the track length. The old BrowseAmp forced Winamp to write the current playlist to disk, read out and parsed the file. It's pretty stupid and much too slow. I hope there will be a better way in Winamp 2.90. The Browser does not display track length (Where from should he know them?).
btw: I mentioned that in my post above  :whistling:
Aaron #10
Member since Mar 2003 · 64 posts
Group memberships: Members
Show profile · Link to this post
Cool... did you test the Offset & Length bug?
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Keefy #11
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
I like it. I like it a lot. Gimmie a week or so and I'll try and get an XML interface skin together.
Keefy #12
Member since Mar 2003 · 89 posts
Group memberships: Members
Show profile · Link to this post
In fact, it took less than 5 mins to get a basic prototype. The following can be put in "currentTrack.html":

<CurrentTrack>
  <SongTitle><#SongTitle></SongTitle>
  <SongLengthMin><#SongLengthMin></SongLengthMin>
  <SongLengthSec><#SongLengthSec></SongLengthSec>
  <SongPositionMin><#SongPositionMin></SongPositionMin>
  <SongPositionSec><#SongPositionSec></SongPositionSec>
  <Bitrate><#Bitrate></Bitrate>
  <Samplerate><#Samplerate></Samplerate>
  <Channels><#Channels on_stereo="2" on_mono="1"></Channels>
 </currentTrack>

Which will return:
<CurrentTrack>
  <SongTitle>Cafe del Mar - ChillHouse Mix 2 CD1</SongTitle>
  <SongLengthMin>10</SongLengthMin>
  <SongLengthSec>50</SongLengthSec>
  <SongPositionMin>09</SongPositionMin>
  <SongPositionSec>43</SongPositionSec>
  <Bitrate>192</Bitrate>
  <Samplerate>44</Samplerate>
  <Channels>2</Channels>
 </currentTrack>

All that needs to be done is the activation of the substitutions for *.xml files as well as *.html files. I had to cheat here by calling the skin file currentTrack.html, but it shows what is possible. Nice.

Henry, would it be possible to create a forum board for the discussion of XML? I'd like somewhere to upload sample XML files for other to see.
This post was edited on 2003-04-03, 17:11 by Unknown user.
Avatar
Henry (Administrator) #13
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi folks!

Here is a new beta of BrowseAmp 2.0
Enjoy and please report bugs.
Thanks. :cool:

@Keefy
You could use the skin-forum for your XML stuff.


Comment
Tracklength is now displayed.
XML files are parsed now
tons of features added.
more skinning debug information (tags say if a parameter is missing)
invalid tags are displayed red
base skin tuned
remove-played-songs option improved
some minor changes
See help for a detailed description of the new features.
Help updated (as you can see...)

new features
HTML Tag added: <#status>
HTML Tag added: <#search_playlist_string>
HTML Tag added: <#search_files_string>
HTML Tag added: <#MetaData>
HTML Tag added: <#browser_filesize>
HTML Tag added: <#RemovePlayedStatus>
HTML command added: close
HTML command added: minimize
HTML command added: reboot
HTML command added: standby
HTML command added: shutdown
HTML command added: execute
HTML command added: insert=<filename>
HTML command added: saveplaylist=<filename>
HTML command added: download=<filename>
HTML command added: removeplayed
HTML command added: playifnotplaying

bugfixes
404 error with user management fixed. Thanks to Azimuth!
the skin selection box works now
playlist, an empty offset does not scramble the playlist
mavas #14
Member since Feb 2003 · 24 posts
Group memberships: Members
Show profile · Link to this post
Hey,

This is great stuff. But I was hoping that you have improved the search option.
Is this still coming?
mavas #15
Member since Feb 2003 · 24 posts
Group memberships: Members
Show profile · Link to this post
Quote by mavas on 2003-04-06, 08:41:
Hey,

This is great stuff. But I was hoping that you have improved the search option.
Is this still coming?
? I could not edit my post...

What I wanted to say is that you implemented the extra search options! :) I haven't looked very carefully.
But is this gona change to the option window, or will it stay in the browser?
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  3  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 207.8 ms (118.2 ms) · 111 database queries in 71.4 ms
Current time: 2018-02-21, 13:18:35 (UTC +00:00)