Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_httpcontrol (Read 932854 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_httpcontrol

Reply #125
Perfect! Update iPhone (PDA) template for v0.75:


Download

 

foo_httpcontrol

Reply #126
@oblikoamorale

Wow! amazing... amazing ... Thanks a lot !
Works really fine here..

foo_httpcontrol

Reply #127
d'oh! I forgot to remove the 'no-cache' http header in 0.75, which evil nature prevents caching and generates unneccessary traffic when serving favicon, pictures and any other files (excluding always reloading main interface). fixed 0.75 is re-uploaded.

foo_httpcontrol

Reply #128
Again update iPhone (PDA) template for v0.75:


Download
  • add top panel
  • add rating and genre items
  • add iphone spring_board icon
  • del tech info (ver, bitrate etc)
  • fix vert/horiz view
[/size]

foo_httpcontrol

Reply #129
Amazing oblikoamorale !!! Thank you so much!

foo_httpcontrol

Reply #130
Easter egg:

"
Happy birthday, oblikoamorale! :-)

"
..so...happy birthday!

foo_httpcontrol

Reply #131
Here's my latest version of the Opera/Firefox sidebar, updated to include album art as offered in 0.7.5, and also simplified much more:

foo_httpcontrol

Reply #132
It is simply a dream and even if I have stoned me, I will see this now rather than in my Foobar

now actually missing only the lyrics I get to this point because someone can help me?

Thank you in advance and all made this possible




foo_peter

foo_httpcontrol

Reply #133
this is a great plugin  thanks a lot.

Is it possible to enhance the html template to have vertical scroll only on the playlist area ?
the goal is to have buttons and now_playing area always visible.

foo_httpcontrol

Reply #134
You can accomplish this by putting a div element around the playlist table. Assign it a unique id (I use "playlist"), so that it looks like this:
Code: [Select]
<div id="playlist">
    <table id="pl">
        [PLAYLIST]
        ...
    </table>
</div>

Now add the following JavaScript function to the JavaScript section in the HTML head:
Code: [Select]
function fit() {
    var playlist = document.getElementById('playlist');

    playlist.style.position = 'static'; // important for the onresize event
    var top = playlist.offsetTop;
    var left = playlist.offsetLeft;

    playlist.style.overflowY = 'auto';

    playlist.style.top = top + 'px';
    playlist.style.left = left + 'px';
    playlist.style.right = left + 'px';
    playlist.style.bottom = '8px'; // fit this to your taste
    playlist.style.position = 'absolute';
}

To make sure it is executed every time the page (re)loads or is resized, the body element has to be modified this way:
Code: [Select]
<body onload="mouse_capture_init(); fit();" onresize="fit();">

foo_httpcontrol

Reply #135
Does anybody see a way to do a template using sproutcore??

foo_httpcontrol

Reply #136
nice, Hancoque. thanks. once been trying to make something similar, but failed. nice.


foo_httpcontrol

Reply #138
Excellent plugin. Thanks a lot, oblikoamorale.

I installed it on my girl friend's computer, who listens to her music on a desktop computer, but she prefers using her laptop on her sofa for other geeky activities. So she was interested in having a tool to control her music remotely.

There is a problem, though. When she connects to foo_httpcontrol server using Firefox, it quickly reaches 99% CPU usage, and she has to kill Firefox. She has a 512MB / 1.5GHz laptop with Win XP SP2, she uses Firefox 2.0.0.14 and foo_httpcontrol 0.75.
I tried to connect to her server with my own laptop (4GB / 2.6GHz dual core under Win XP SP3) and I get 50% CPU usage for 10 to 20 seconds, then it drops to 0-3% for a while, and jump back to 50%.

Her playlist is big, which is probably the problem (but I read you are testing the plugin on a 23k playlist). She has about 38k tracks.

--

BTW, I personnally use foo_httpcontrol in conjunction with a edcast streaming server and a secured ssh connection with a tunnel. The stream is public, non secured, but the http control can only be performed locally (So I ssh/tunnel the http requests). It works very well with my 10k playlist, but I do not tried with the last version of foo_httpcontrol.

foo_httpcontrol

Reply #139
38k tracks is an obvious overload.
it takes some time for plugin to process so many tracks internally, but it should be less than a second. and, what's more significant, generated html page size in this case is enormous, something around 5Mb. apparently mozilla is having troubles loading and displaying such big pages.
perhaps it is a good idea to try opera 9.5. 23k playlist displays just fine, even with instant page redrawing option turned on.
but in my opinion, the only comfortable solution in case of a (very) big playlists is to uncheck 'retrieve playlist' in plugin settings.

foo_httpcontrol

Reply #140
but in my opinion, the only comfortable solution in case of a (very) big playlists is to uncheck 'retrieve playlist' in plugin settings.


Thank you. I was thinking of such possibility, but I did not look at the settings. I was also wondering if it would be possible to reduce the size of the web page by, e.g., only displaying the list of artists or albums, and when you click on one of them, it retrieves the list of tracks for the particular artist / album.
This is probably far more complex to implement since the playlist is not necessarily ordered by artist/album.

An alternative solution would be to retrieve tracks according to a query that would be given through a web form. So, if the query is carefully chosen, there would not be a huge list to display.

I will also take a look at opera 9.5, but I love Firefox too.

foo_httpcontrol

Reply #141
To reduce the page size wouldn't it be possible to display only a limited amout of the playlist splitted in multiple pages ?
For exemple : with a 10k songs playlist. Only display 1k songs at once but splitted in 10 pages.
The number of songs displayed per page could be defined in the préferences

foo_httpcontrol

Reply #142
Athyndmion, sadly I'm not interested in reproducing autoplaylists/playlists query/media library etc in html interface.

Hamallainen, I've thought about it before but got stuck on two things: I'm amazingly lazy, and personally I don't need such page switching. and I'm lazy again.

sorry.

foo_httpcontrol

Reply #143
well... some spare time today has been spent fiddling with this bastard:
Code: [Select]
    v0.76 29 Jun 2008
        add: improved remote access logging;
        add: scrollable playlist area (by Hancoque);
        add: autoscroll to now playing track;
        add: multipage playlist. number of per-page entries is set in
             "Page entries" settings field. entering 0 disables multipage;
        fix: mostly invisible glitches;

foo_httpcontrol

Reply #144
so you're not so lazy 
The multi page works quite well. Big playlist should not be a problem anymore.
And the scrollable playlist is a nice addition too.
Thanks to you and Hancoque

foo_httpcontrol

Reply #145
Strangely the playlist disappears in IE7 when a now-playing track is present. It has something to do with the autoscroll feature.

foo_httpcontrol

Reply #146
can't test due to absence of IE7... thanks g#d I don't have it
try removing the autoscroll part in fit() function of the template file maybe?

foo_httpcontrol

Reply #147
I've just tested it with your default template and found out that the fit function doesn't have any effect in quirks mode when using IE6 or IE7. If I remove the doctype declaration in my own otherwise XHTML compliant template and thus force the browser to interpret it in quirks mode I experience the same problem. In standards compliance mode however IE7 correctly applies the fit function to make the playlist scrollable while in IE6 it still doesn't work (which is either my fault or that of IE6). But as I said, the playlist gets eaten by IE7 if the code inside the "if (npelem)" condition is executed. Just accessing npelem.offsetTop, offsetHeight or scrollTop triggers the bug. So you don't even have to change any values, which means that even code like below already causes the problem:

Code: [Select]
if (npelem)
{
    var foo = npelem.offsetTop;
}

Code: [Select]
if (npelem)
{
    var foo = offsetHeight;
}

Code: [Select]
if (npelem)
{
    var foo = scrollTop;
}

Strange, isn't it?

foo_httpcontrol

Reply #148
I've had a problem with 0.76: the playlist wasn't shown anymore. Tried in various browsers, switched to the original template and saw the same. But then I stopped the music, switched playlists and things started working properly again. After some more trying, I figured out that after switching to a new playlist, it tries to automatically go to the page were the 'now playing' song is on - even though that song is not present on the newly chosen playlist. If the page number is not available in the new playlist because it is shorter, the playlist will not be shown at all.

Presumably this is the same thing as Hancoque is talking about.

foo_httpcontrol

Reply #149
Hancoque, could it be that assigning nowplaying id to an <tr> element of playlist causes this weird problem? what do you, as html guru, would suggest?

Ritsl, thanks for detailed report! I think it is a different issue which I thought I've fixed already.