rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: fabnos on December 24, 2006, 05:32:54 PM

Title: Testing Thunderchicken_of_Glory
Post by: fabnos on December 24, 2006, 05:32:54 PM
Hi at all

I'm testing Thunderchicken_of_Glory with 120 .mp3's songs.

A little Xmas gift for you, it's better if you try the first one -> 0000000_BadToThe Bone  8)

My problem is that in local all work well, but in my lan the other pc don't sing any  >:(

Which should be the error ?

Tnx a lot

http://fabnos.fast-ip.eu (http://fabnos.fast-ip.eu)
Title: Re: Testing Thunderchicken_of_Glory
Post by: maverick on December 24, 2006, 05:59:44 PM

I couldn't get that page to load.  With 120 instances of mp3player.swf trying to load at the same time,  you probably have cpu load problems (constant 100%).  Maybe make 4 or 5 pages out of it.
Title: Re: Testing Thunderchicken_of_Glory
Post by: fabnos on December 24, 2006, 06:39:19 PM
Tnx a lot  ;)
Then, how many songs may be inserted ? There is a method to evalute this number ?
F.
Title: Re: Testing Thunderchicken_of_Glory
Post by: maverick on December 24, 2006, 06:58:55 PM
I use this method to try and determine how many mp3's I can put on a page and still leave enough cpu to do other things.

What I do is run windows task manager and watch how much cpu load there is while the page loads and more importantly what's left after it loads.  There will be 100% load while the page is loading but once it is loaded the cpu load should drop so other tasks can be run.  If it doesn't drop that tells you that there are still to many mp3's on the page.  I have one page with 25 mp3's and 25 thumbs.  After the page is loaded, my cpu load drops to 80-85%. 

Another thing I should mention.   I came across some mp3's that I just couldn't get any sound from with mp3player.swf.  For the longest time I couldn't figure out why some played and others no audio???  Then I figured out what the problem was --> mp3player.swf needs the mp3 ID3 tag which was missing from those mp3's.  I just added the music name to make a ID3 tag with winamp and now mp3player.swf plays those mp3's no problem.
Title: Re: Testing Thunderchicken_of_Glory
Post by: fabnos on December 24, 2006, 07:26:42 PM
Tnx again
I've made a xmas collection more little so if you have time it's online.
best regards
fabio
Title: Re: Testing Thunderchicken_of_Glory
Post by: maverick on December 24, 2006, 07:37:51 PM
That's better.  The page loaded fast.

Now the problem you have seems that mp3player.swf can't find the mp3 file.  I looked at your template source and I think that's the problem.  Try this instead of what you have now and see if that helps:

This goes in the [file.mp3] section...

<object>
<param value="http://%host%/mp3player.swf" />
<param name="flashvars"/><embed src="http://%host%/mp3player.swf" width="100" height="19" name="mp3player" flashvars="file=%item-url%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


>>> NEW - this is what I'm using now <<<

<embed src="/mp3player.swf" width="100" height="19" bgcolor="#808080"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=%item-url%" />
Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on December 25, 2006, 04:45:28 AM
Yes, i have noticed this problem here, i want a smaller mp3player, one that doesnt support anything except the streaming of 1 single mp3, i am thinking of making my own one, but atm i am at christmas party lol, borrowing aunties computer. So when i get home i will get stuck into this mp3 issue... the problem is the mp3 player looks for a playlist before it becomes a single file mp3 player... which sucks... maybe i could cut away at the source of the one i have... who knows, i will see how i go... Also i cant wait until we can set the amount of files/page like on this forum  :) that will make it much nicer to use ! i think 20/page is good amount but more than that is just confusing...
Title: Re: Testing Thunderchicken_of_Glory
Post by: ledufe on December 25, 2006, 05:49:38 AM
let me try to help, the code i used here, and this one works for me...

i created a section file.mp3 like this bellow:
Code: [Select]
[file.mp3]
<tr>
<td>
%new%
<a href="%item-url%">
<img src="/~img_file" />
 %item-name%
</a>
%comment%
<td align=right>
%item-size%
<td align=right>
%item-modified%
<td align=right>
%item-dl-count%
<td align=right>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="20" id="mp3player"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
  <param name="movie" value="http://%host%/mp3player.swf" />
<param name="flashvars" value="config=http://www.server.com/config.xml&file=http://www.server.com/playlist.xml" />
  <embed src="http://%host%/mp3player.swf" width="300" height="20" name="mp3player"
    flashvars="file=%item-url%"
    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

my hfs root folder is like this here
(http://)

[attachment deleted by admin]
Title: Re: Testing Thunderchicken_of_Glory
Post by: fabnos on December 25, 2006, 09:02:09 AM
Well
I will send 3 .tpl in ita I think have putted your MP3 section right.

000..... is default from Thunderchicken_of_Glory
001..... is with Maverick's MP3 section
002..... is with Ledufe's MP3 section

In 000 and 001 all works baut only in local
With 002 don't work also in local  :'(

May be my PC is too poor in resources (CPU, RAM, etc.) ?

Other thing is that mp3 player hide friends when mouse is over their links (address are behind player)

Hi Maverick, a very very nice template those of your site  ;D




[attachment deleted by admin]
Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on December 25, 2006, 09:56:28 AM
Strange seeing my template in a different language hehe, nice to know its out there  :D, i have 2.2ghz, 2gb ram and i find its working fine on about 20-40 songs, i don't have folders with more than that sort of size so its not much of a problem, i will now look for a better mp3 player, maybe one thats is simply a button! something about 1-3kb would be great... bit tired though, its been a long day lol. I am still tempted to make my own streaming button...

Oh and about the tooltip goin under the player, i also found this happened, i think flash sits on top of the page... cause the tooltips load at z-index:100; i think... maybe try setting a z-index: ?; for the mp3player...

I think making a smaller mp3 player will take the load of the cpu's and ram bit more...

After shower i will get to work!

BTW A NEW VERSION HAS BEEN POSTED NOW, just the latest version, hasn't got this new fixes yet though.
Title: Re: Testing Thunderchicken_of_Glory
Post by: ledufe on December 25, 2006, 10:00:16 AM
Well
I will send 3 .tpl in ita I think have putted your MP3 section right.

002..... is with Ledufe's MP3 section

With 002 don't work also in local  :'(

your code on [file.mp3] section
Code: [Select]
[file.mp3]
<tr>
<td>
%new%
<a href="%item-url%">
<img src="/~img_file" />
 %item-name%
</a>
%comment%
<td align=right>
%item-size%
<td align=right>
%item-modified%
<td align=right>
%item-dl-count%
<td align=right>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="20" id="mp3player"
          codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
          <param name="movie" value="http://%host%/mp3player.swf" />
          <param name="flashvars" value="config=http://www.server.com/config.xml&file=http://www.server.com/playlist.xml" />
          <embed src="http://%host%/mp3player.swf" width="300" height="20" name="mp3player"
    flashvars="file=%item-url%"
    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</td>
</tr>

this one works on my [file.mp3]
Code: [Select]
[file.mp3]
<tr>
<td>
%new%
<a href="%item-url%">
<img src="/~img_file" />
 %item-name%
</a>
%comment%
<td align=right>
%item-size%
<td align=right>
%item-modified%
<td align=right>
%item-dl-count%
<td align=right>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="20" id="mp3player"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
  <param name="movie" value="http://%host%/mp3player.swf" />
<param name="flashvars" value="config=http://www.server.com/config.xml&file=http://www.server.com/playlist.xml" />
  <embed src="http://%host%/mp3player.swf" width="300" height="20" name="mp3player"
    flashvars="file=%item-url%"
    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

if you look both codes looks the same, but i thinked in one thing, are your hfs encoding non-ASCII characters?
try disabling and enabling it, cause the generated html may be with
"&amp;" instead "&"...

May be my PC is too poor in resources (CPU, RAM, etc.) ?
from adobe/macromedia page
http://www.adobe.com/products/flashplayer/productinfo/systemreqs/

Quote
Windows     
Intel® Pentium® II 450MHz or faster processor (or equivalent)
128MB of RAM

Other thing is that mp3 player hide friends when mouse is over their links (address are behind player)
i don´t know this one, may be the css....
Title: Re: Testing Thunderchicken_of_Glory
Post by: fabnos on December 25, 2006, 10:28:23 AM
Tnx Ledufe but don't work.
Is not a very important thing (for me).
As just said I'm only testing and .... translating in italian all what I can and find.
So I see often your HFS server (and now also Maverick's HFS, That_Stevens_Guy, and all others) to bring some new ideas .
I've not a big knowledge about HTTP code and so traducing is a good way to learn something in +

When my HFS will be more up I will put a folder with all the italian .tpl I've already translated (and also all technical documentation, if someone send this to me)

Best regards

fabnos

Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on December 26, 2006, 06:16:57 PM
I am testing a new mp3 player i found, it is only 2.5kb! much nicer, i wish to decompile and remove some un-needed animation and condense the code more, could get it to 2kb if i tried i think... but i need a program to do it... it loads much better than the last one i had!

EDIT: i have edited it down to 1.18kb!!! i also added a real total time, i am still working on showing the position counter in time format instead of a second counter! it has also been coloured like the ToG

Attached is some previews, code example, (fell free to show me an improved version) and the player i have embedded.

Code: [Select]
[file.mp3]
<tr class=off onmouseover="this.className='on'" onmouseout="this.className='off'">
<td class=rw style="border-left:0px;">%new% <a href="%item-url%">&nbsp;<img align=top src="/~img_file" alt=""> %item-name%</a>%comment%<td class=rw align=center>%item-size%</td>
<td class=rw align=center>%item-modified%</td>
<td class=rw align=left width=100 style="background:#EAEDF4;">&nbsp;%item-dl-count%<br>
<object type="application/x-shockwave-flash" width=160 height=20 data="/mp3player.swf?song=%item-url%" bgcolor="#EAEDF4">
<param name="movie" value="/mp3player.swf?song=%item-url%"/>
<param name="bgcolor" value="#EAEDF4"/>
</object>
</td>
</tr>

[attachment deleted by admin]
Title: Re: Testing Thunderchicken_of_Glory
Post by: Fysack on January 10, 2007, 12:10:15 AM
O thank you  :P
I came across some mp3's that I just couldn't get any sound from with mp3player.swf.  For the longest time I couldn't figure out why some played and others no audio???
Same thing here. I use Opera mainly and i thought i had this odd memory/cache/pagefile problem and did a major cleaning job on my PC. (AMD64x2/1gigRAM) And i didnt get any wiser when i copy/pasted the url into iexplorer and found out that some of the non working songs suddely worked  :-\
So witch song work and who do not, seems to me to be totally random.

When i use Opera and click on filename of the song, it opens in a new window and a slim`n smoot quicktime player appears. So i was thinking about the possibillyties to implent that player into the template since its already a innstalled plugin. So i found some info about it here:
http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_HTML/index.html#//apple_ref/doc/uid/TP40001525

I did manage to implent some kind of a player to, with this code:

<OBJECT
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"
width="320" height="256"
id="movie1">
<PARAM name="src" value="MyMovie.mov"> 
<EMBED HEIGHT=256 WIDTH=320
SRC="MyMovie.mov"
TYPE="video/quicktime"
PLUGINSPAGE="www.apple.com/quicktime/download"
EnableJavaScript="true" /
NAME="movie1"/>
</OBJECT>

But i didnt get it to play ??? So i must admit, java is out of my leage  :'(
But it looked verry nice ;D

My second thought about this, if this could work perfect on mp3, the way to a nice working movieplayer would be shorter.

HAPPY NEW YEAR!

..i think im gonna organize some image dir`s with thumbs now  ;D



Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on January 10, 2007, 01:17:26 PM
Ye i dont like the quicktime player much, it stalls up all of my browsers, could be a quicktime issue though, i like the idea of flash because it is usable by almost everbody, in any browser.

I am thinking of removing the one player/ file and inserting a playlists generator i was shown, along with the jiroenwignenedssdfsd player. It appears to work well in all browsers except IE, so work is needed before this ends up in the ToG. Cross browser support is what we aim for ;D

For now it will have my default single player for the time being. It runs ok with about 10 - 50 songs in a folder. Flynsarmy ran a test with 5000 mp3's rofl (He has an almost identical PC to mine, we differ by 20gb hdd space lol). It just constantly chewed up RAM till almost crashing his computer, so just a warning DO NOT USE IT WITH 5000 SONGS! unless you own a super computer lol.  :o

BTW this new mp3player.swf i have made doesnt seem to have the file not play issue. they all play for me.
Title: Re: Testing Thunderchicken_of_Glory
Post by: Flynsarmy on January 11, 2007, 04:27:37 AM
I've tried talking to TSG on countless occasions, trying to convince him to change the
way the damn mp3 player in ToG works. It's my most hated feature in the entire
template. I suggested, rather than loading hundreds of instances of the mp3 player on
page load, we just print text in an iframe with a javascript link that loads the mp3
player for that file. It'd stop ALL these problems of high CPU usage regardless of whether
you're loading the page internally or externally. He simply refuses to hear me. I know
compatability is important, but compatability at the expense of usability? That's where
you hit a problem.
Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on January 11, 2007, 04:37:31 AM
Yes me and Giant Eagle on his template are working on the javascript to do it a similiar way aswell, because we cant get IE to read the playlist file properly. I will have a talk with Giant Eagle when he comes online at around 3am here lol. He wants to have a single flash mp3 player up the top, that all files a can be played in, maybe using a checkbox or something, we havent decided, but if you think your up to this (and you probably are) and want to make this iframe one go for it, i dont care i am sick of the flash one chewing up memory, i have tested it myself now ;) and its fairly noticable. Uno i could have just yelled at you on msn, but i want the whole forum to see the progress of the mp3 player :)
Title: Re: Testing Thunderchicken_of_Glory
Post by: Flynsarmy on January 11, 2007, 04:43:31 AM
With the destruction of the infamous mass mp3 player numbers imminent, I feel I have struck a
blow for the people.

Don't worry lads, I'll keep fighting the good fight.
Title: Re: Testing Thunderchicken_of_Glory
Post by: maverick on January 11, 2007, 08:29:21 AM
rather than loading hundreds of instances of the mp3 player on page load

That was a concern of mine too.  But I don't see that behavior anymore.   mp3player.swf is loaded only ONCE when I FIRST open a music folder and it doesn't matter how many mp3's are in it.  (however, I try to limit the music files to a max of around 25 per page).  Also, if I go to another music folder and open it, HFS logs show NO additional loading of mp3player.  I'm guessing memory/cache is handling the call if needed. 

I do remember my logs showing multiple loadings of mp3player.swf.  As I mentioned  above, I don't see that anymore.  I can only attribute that positive change in behavior to a code change I made calling the player.  If you go to the previous page in this thread, you will see the change I made.  If it wasn't the code change that did it, then I don't know what else I did to make it work "right".  Tested and works in IE6, FF, Netscape, & Opera.

Below are 2 attachments.  One is a music page I opened which had a total of 13 mp3's in it.  The other is the HFS log showing the activity. (note: mp3player.swf loaded only 1 time not 13 times).


[attachment deleted by admin]
Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on January 11, 2007, 11:37:25 AM
hmmm well if you could get my 1.19kb single player to work by only uploading once..... that woudl be awesome actually lol. I have noticed that the jireonwigerinegs one actually only loads once, but it takes a while to set itself up on the user end, because it looks for playlist first then transforms to a single player.... wonder if it would be possible to make my edited player load once....
Title: Re: Testing Thunderchicken_of_Glory
Post by: maverick on January 12, 2007, 02:12:29 AM
it takes a while to set itself up on the user end, because it looks for playlist first then transforms to a single player....

I don't think it looks for a playlist first if the playlist isn't included in the configuration or if you aren't using the javascript setup to use a playlist (at least I haven't noticed that behavior).

As far as it takes a while to set itself up on the user end, I think that has to do with the browser the user is using.  Some browsers load the page a lot faster than others.  This is what I have noticed:

Fastest  - Opera v8.5x  (my default is v8.54)
     :      - Opera v9.xx              )  Opera v9.xx and
     :      - Internet Explorer 6     )  IE6 are comparable
     :      - Netscape v7.2
Slowest - Firefox v1.5.0.1 & v2.0 (don't know why this browser is so slow)

Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on January 12, 2007, 07:03:03 AM
Because the .swf is shrunk down to 50x20px u cant see exactly what is going on, you get a blurred view of the larger player, if you set it to 200x300px, or even open the swf on ur PC it should do it, you will see that the player first sets itself up to run a playlist, then defaults back to a single player, the benefit of my single mp3 player is that it does not do this hence it is only 1.19kb. So it would be nice if my mp3player could upload once and function the same way... We are stil looking into a javascript method, the ppl with js turned off can either grow up, install a firewall, or are not worthy of listening to the music :D.
Title: Re: Testing Thunderchicken_of_Glory
Post by: TSG on January 18, 2007, 11:45:34 AM
Ok an update on the ToG, been fixing things that i have missed (%folder-comment%  :-[) and editing code, and we finally have our new mp3 method. Thanks to Flynsarmy.

Users that have javascript turned off do not deserve to listen to the music :D

This is how it works. We are using the mp3player that i have put together for the ToG (1.18kb), the user hits a stream button, which changes the contents of a div, when this appears the user can stream the song, hit stop while it still loads (streams), and to end the streaming, they hit End Stream, it seems that when a person hits this and changes the contents of the div, the mp3 stops playing AND streaming,  :o.

This method overcomes the cpu and ram problems with multiple loads of the mp3 player, and we like it alot, the next step is to make it only allow the streaming of one file... but thats for later. A new build will be out just before i go on holidays. But this isnt the final, we have 1 extra feature to put in it, but it wont be complete for at least 2wks.

The .tpl is still only 20kb keeping with the ToG's, tiny size / lots of features, thing that we have going atm. I have been testing it on flynsarmy's shaped upload speed of 64k and it works just the same as normal!
Title: Re: Testing Thunderchicken_of_Glory
Post by: rejetto on January 18, 2007, 02:04:57 PM
yes, good idea, a javascript button that just changes the only player
Title: Re: Testing Thunderchicken_of_Glory
Post by: Giant Eagle on January 18, 2007, 09:33:55 PM
The only problem now is preventing multiple streams ;D

anyway.. nice work :)
Title: Re: Testing Thunderchicken_of_Glory
Post by: rejetto on January 19, 2007, 05:10:34 PM
use the "max simultaneous downloads from single address"