IPB

Welcome Guest ( Log In | Register )

foo_httpcontrol, control foobar via http
oblikoamorale
post Mar 28 2008, 06:01
Post #1





Group: Developer
Posts: 302
Joined: 24-March 08
Member No.: 52244



This foobar2000 1.0+ component is developed as replacement for Media Player Classic web control interface, which I used quite a lot, but still didn't like it, as it missed quite a number of features I'd like to have. Also I felt it's a shame such great player as foobar2000 couldn't be remotely controlled over http nowadays. So, erm, I went ahead and somehow developed component featuring functions I use by myself on everyday basis.

This component provides the following features via http interface:
- full control of playback, including seekbar;
- basic playlist support;
- basic playback queue support;
- basic media library support;
- basic file browser functions, including ability to browse Microsoft Network;
- a few UI custimization abilities.

Stock interface template is written using synchronious document model (with basic CSS and JS), and has been tested and proved itself working on any modern browser: Opera, Firefox, Chrome, Safari. Stock interface screenshot

Download foo_httpcontrol
Changelog

User submitted templates for component version 0.96.5 and newer:
for desktop PC browser:
ajquery (jQuery UI based)
default (brain dead simple)
by vakata fix
Opera sidebar, by Ritsl
by vairulez

for mobile devices:
SimpleBasic, for iphone/ipod touch, by L4nt0m
iPhone, by lxofith (vast improvement of Joror template) fix
G1 Android (also Chrome/Safari/Firefox/Opera/iPhone compatible), by Kev0 fix
experimental autoscaling, by Kev0 (based on lxofith work)
foodroid2000, native Android client, by bugramovic
for Android, by regi24
for 320x240 screens, by kaFFee666
for Nokia N900, based on vakata2, by yolan
iPhone and iPad remotes, by vogliadicane

Illustrated beginner's guide to the component.

This post has been edited by oblikoamorale: Nov 23 2011, 16:20
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Tim Schuhmacher
post May 10 2008, 23:43
Post #2





Group: Members
Posts: 12
Joined: 10-May 08
Member No.: 53426



First: oblikoamorale thanks for this component, I like it very much.

I also would like an option to enqueue tracks, but not by handling a double click. I use a smart phone and it doesn't no anything like double click. My idea is to add just an extra link (an 'e' or +) after the track and the delete sign. By clicking the webpage puts that specific track in the queue, and refreshes.
I don't care if enqueued files are visually indicated. But than you need cwb_hooks and maybe it is preferably better to be less dependant on other components?

Another small request of mine. Could you add an extra checkbox that disable automatic refreshing of the webpage? Again because I use my smart phone I have to pay for the bandwidth I use. Maybe it isn't much, but when I leave the page open and put the browser to the background it still consumes unnessesary data.

@Cutter: when you get a error, how large is the requested playlist?

This post has been edited by Tim Schuhmacher: May 10 2008, 23:46
Go to the top of the page
+Quote Post
oblikoamorale
post May 11 2008, 05:06
Post #3





Group: Developer
Posts: 302
Joined: 24-March 08
Member No.: 52244



QUOTE (Tim Schuhmacher @ May 11 2008, 02:43) *
I also would like an option to enqueue tracks, but not by handling a double click. I use a smart phone and it doesn't no anything like double click. My idea is to add just an extra link (an 'e' or +) after the track and the delete sign. By clicking the webpage puts that specific track in the queue, and refreshes.
I don't care if enqueued files are visually indicated. But than you need cwb_hooks and maybe it is preferably better to be less dependant on other components?

I'm thinking of a better way of implementing queue and cursor management controls. I don't want to add extra control buttons to playlist itself, as it is going to unneccessary increase of page size. and I'm removing the delete button from there.
I guess I'll end up with something like this: at first, user presses some button, choosing action (delete, queue, focus), then he clicks desired track in playlist.
QUOTE (Tim Schuhmacher @ May 11 2008, 02:43) *
Another small request of mine. Could you add an extra checkbox that disable automatic refreshing of the webpage? Again because I use my smart phone I have to pay for the bandwidth I use. Maybe it isn't much, but when I leave the page open and put the browser to the background it still consumes unnessesary data.

autorefresh can be turned off by fiddling with javascript in template, but I'll think what can be done.
QUOTE (Tim Schuhmacher @ May 11 2008, 02:43) *
@Cutter: when you get a error, how large is the requested playlist?

it doesn't seem like a matter of big playlist, it's something else. i have a test playlist consisting of 23 thousand tracks, and stress testing the plugin page with apache benchmark reveals no problems. no memory leaks, no handle leaks, nothing suspicious.
Go to the top of the page
+Quote Post
Hamallainen
post May 11 2008, 11:02
Post #4





Group: Members
Posts: 229
Joined: 1-April 04
Member No.: 13171



QUOTE (oblikoamorale @ May 11 2008, 05:06) *
I'm thinking of a better way of implementing queue and cursor management controls. I don't want to add extra control buttons to playlist itself, as it is going to unnecessary increase of page size. and I'm removing the delete button from there.
I guess I'll end up with something like this: at first, user presses some button, choosing action (delete, queue, focus), then he clicks desired track in playlist.
Yes that would be great that way.
Like radio buttons or dropdown menu maybe for : play now, delete, enqueue (and dequeue?) and then just single click a track.
Also it would be nice if there was a way to see enqueued tracks and a way to set the default action between 'play now' and 'enqueue' (or something else)
Go to the top of the page
+Quote Post

Posts in this topic
- oblikoamorale   foo_httpcontrol   Mar 28 2008, 06:01
- - math0ne   I couldn't get this to work. It connects but ...   Mar 28 2008, 07:37
- - oblikoamorale   by default it is configured to be available on net...   Mar 28 2008, 07:46
- - foo_peter   Extremely useful....have been using it for a long ...   Mar 28 2008, 11:28
- - Chipicui   Wow!! amazing... Thanks a lot ! ...   Mar 28 2008, 15:57
- - Chipicui   Sorry if I bother you too much... but this little ...   Mar 28 2008, 16:31
|- - oblikoamorale   QUOTE (Chipicui) Using it via wifi from my Palm br...   Mar 29 2008, 07:45
|- - TooSteep   QUOTE (oblikoamorale @ Mar 28 2008, 22:45...   Mar 29 2008, 16:12
- - TooSteep   Newb question here... From Opera 9.26, I am tryin...   Mar 28 2008, 18:00
- - blubbo   I like the idea but with 70% cpu utilization when ...   Mar 28 2008, 21:16
- - Hamallainen   Thank you so much for this. There's a long tim...   Mar 29 2008, 02:44
- - Hamallainen   Hi, A little feedback after some testing. In Fir...   Mar 29 2008, 12:46
|- - oblikoamorale   QUOTE (Hamallainen @ Mar 29 2008, 14:46) ...   Mar 29 2008, 13:35
|- - Hamallainen   QUOTE (oblikoamorale @ Mar 29 2008, 13:35...   Mar 29 2008, 14:59
|- - oblikoamorale   QUOTE (Hamallainen @ Mar 29 2008, 16:59) ...   Mar 29 2008, 17:23
- - bubbleguuum   Useful plugin, I want to use it with my PSP, as a ...   Mar 29 2008, 21:06
- - nightfishing   Works great. (very handy) Thank you!   Mar 30 2008, 05:09
- - Hengest   Thanks for the plugin. One suggestion though: add ...   Mar 30 2008, 07:31
- - oblikoamorale   updated... CODE v0.6 30 Mar 2008 fix: templa...   Mar 30 2008, 19:18
|- - Hamallainen   QUOTE (oblikoamorale @ Mar 30 2008, 19:18...   Mar 30 2008, 23:21
- - smok3   (about sorting: the same behavior is noticed with ...   Mar 31 2008, 07:41
- - Chipicui   Holy cow!!!!!!!!...   Mar 31 2008, 15:17
- - Chipicui   A question: How do you filter a folder to enqueue ...   Mar 31 2008, 15:30
|- - oblikoamorale   QUOTE (Chipicui @ Mar 31 2008, 17:30) A q...   Mar 31 2008, 16:35
- - bubbleguuum   Thanks for the updated version I got the plugin ...   Mar 31 2008, 19:46
|- - oblikoamorale   QUOTE (bubbleguuum @ Mar 31 2008, 21:46) ...   Mar 31 2008, 20:33
|- - RainDawg   Excellent plugin. I think this will fit nicely in...   Mar 31 2008, 21:34
|- - oblikoamorale   QUOTE (RainDawg @ Mar 31 2008, 23:34) 1- ...   Apr 1 2008, 15:46
- - Chipicui   QUOTE (oblikoamorale @ Mar 31 2008, 12:35...   Mar 31 2008, 20:16
- - Chipicui   a minor thing though; I can reproduce the same cra...   Mar 31 2008, 21:04
- - foo_peter   that's fast! tested Firefox 2.0.0.13   Mar 31 2008, 23:19
- - steliyan   I got this error, when connect to http://localhost...   Apr 1 2008, 16:08
|- - oblikoamorale   QUOTE (steliyan @ Apr 1 2008, 19:08) I go...   Apr 1 2008, 17:00
- - Chipicui   My god!!! (almost crying)... I ...   Apr 1 2008, 16:46
- - steliyan   Thanks, that was the problem.   Apr 1 2008, 17:12
- - oblikoamorale   I guess this one is going to last for a real while...   Apr 2 2008, 21:18
|- - AndyCar   QUOTE (oblikoamorale @ Apr 3 2008, 00:18)...   Apr 3 2008, 19:22
- - Chipicui   Many thanks... We can change playlists! Nice ...   Apr 3 2008, 03:38
- - oblikoamorale   couldn't resist fixing things I ran on by myse...   Apr 5 2008, 19:55
- - alphaex32   It would be awesome if someone made a template for...   Apr 6 2008, 00:25
|- - RainDawg   QUOTE (alphaex32 @ Apr 5 2008, 19:25) It ...   Apr 6 2008, 00:51
|- - alphaex32   Well, if you're planning to make a whole proje...   Apr 6 2008, 01:32
- - oblikoamorale   CODEv0.64 08 Apr 2008 add: basic http auth; ...   Apr 8 2008, 20:52
- - Chipicui   Thank you! It's getting better and better....   Apr 8 2008, 22:39
- - pIv   When current song highlighted with gray in playlis...   Apr 9 2008, 07:41
- - carmenm   Hi, i just tried this component and i like it a lo...   Apr 9 2008, 08:37
|- - oblikoamorale   QUOTE (pIv @ Apr 9 2008, 10:41) When curr...   Apr 9 2008, 16:06
|- - pIv   QUOTE QUOTE When current song highlighted with gra...   Apr 9 2008, 18:40
|- - carmenm   QUOTE (oblikoamorale @ Apr 9 2008, 17:06)...   Apr 9 2008, 20:47
|- - oblikoamorale   QUOTE (carmenm @ Apr 9 2008, 23:47) To su...   Apr 10 2008, 03:59
- - oblikoamorale   I guess this is where the saga ends. I reached all...   Apr 19 2008, 21:09
|- - Hamallainen   Thanks a lot for your work. Much appreciated, real...   Apr 20 2008, 01:31
- - Chipicui   Yes!... Thank you very much for such a nice an...   Apr 21 2008, 17:33
- - Cutter   Your plugin is impressive but is there a way to se...   May 8 2008, 08:49
|- - oblikoamorale   QUOTE (Cutter @ May 8 2008, 11:49) Your p...   May 8 2008, 16:34
|- - Cutter   QUOTE (oblikoamorale @ May 8 2008, 17:34)...   May 8 2008, 21:00
- - kanuac   Nice work. Thanks!   May 8 2008, 16:54
- - Tim Schuhmacher   First: oblikoamorale thanks for this component, I ...   May 10 2008, 23:43
|- - oblikoamorale   QUOTE (Tim Schuhmacher @ May 11 2008, 02...   May 11 2008, 05:06
|- - Hamallainen   QUOTE (oblikoamorale @ May 11 2008, 05:06...   May 11 2008, 11:02
- - Tim Schuhmacher   QUOTE (Hamallainen @ May 11 2008, 11:02) ...   May 11 2008, 15:21
|- - oblikoamorale   QUOTE (Tim Schuhmacher @ May 11 2008, 18...   May 11 2008, 15:48
|- - Hamallainen   Nice, it all seems to work fine here. Thanks for t...   May 11 2008, 23:26
|- - oblikoamorale   QUOTE (Hamallainen @ May 12 2008, 02:26) ...   May 12 2008, 07:10
|- - Hamallainen   QUOTE (oblikoamorale @ May 12 2008, 07:10...   May 12 2008, 10:46
||- - oblikoamorale   QUOTE (Hamallainen @ May 12 2008, 13:46) ...   May 12 2008, 16:05
||- - Hamallainen   QUOTE (oblikoamorale @ May 12 2008, 17:05...   May 12 2008, 23:29
|- - foo_peter   to everyone: can you post screen shots or screen p...   May 12 2008, 16:41
- - Tim Schuhmacher   QUOTE (oblikoamorale @ May 11 2008, 15:48...   May 11 2008, 19:13
|- - oblikoamorale   QUOTE (Tim Schuhmacher @ May 11 2008, 22...   May 11 2008, 19:36
- - oblikoamorale   something like should be appropriate for most of t...   May 11 2008, 21:36
- - Gerrit   Hello, I have been looking for a control like thi...   May 12 2008, 13:22
- - Tim Schuhmacher   QUOTE (oblikoamorale @ May 12 2008, 07:10...   May 12 2008, 14:41
- - oblikoamorale   CODE v0.69 13 May 2008 add: VolumeUp/VolumeD...   May 13 2008, 04:23
|- - Hamallainen   perfect thanks   May 13 2008, 10:39
- - Cutter   Small request: currently the page refreshes automa...   May 13 2008, 15:43
|- - oblikoamorale   QUOTE (Cutter @ May 13 2008, 18:43) Small...   May 13 2008, 16:06
- - Cutter   What about an element within the webpage code wich...   May 13 2008, 16:30
|- - oblikoamorale   QUOTE (Cutter @ May 13 2008, 19:30) What ...   May 13 2008, 16:53
- - Cutter   Yeah it would be overkill for quite a little impro...   May 13 2008, 19:26
|- - oblikoamorale   QUOTE (Cutter @ May 13 2008, 22:26) Anoth...   May 14 2008, 03:53
- - Cutter   Thanks.   May 14 2008, 10:33
- - oblikoamorale   I've organised some kind of radio streaming ju...   May 17 2008, 06:25
- - Hancoque   A small feature request: I'd like to be able t...   May 17 2008, 06:53
|- - oblikoamorale   QUOTE (Hancoque @ May 17 2008, 09:53) A s...   May 17 2008, 12:28
|- - Hancoque   QUOTE (oblikoamorale @ May 17 2008, 13:28...   May 17 2008, 16:18
|- - oblikoamorale   QUOTE (Hancoque @ May 17 2008, 19:18) QUO...   May 17 2008, 17:30
- - Hancoque   Thanks!   May 17 2008, 19:34
- - Jorgo   What for, really? In the foobar Media Library you ...   May 18 2008, 10:52
- - oblikoamorale   probably because the media library access interfac...   May 18 2008, 17:02
|- - Hancoque   QUOTE (oblikoamorale @ May 18 2008, 18:02...   May 18 2008, 21:28
- - thuneau   This is a very cool component. Thank you very much...   May 18 2008, 20:07
|- - oblikoamorale   QUOTE (thuneau @ May 18 2008, 23:07) This...   May 19 2008, 04:05
- - oblikoamorale   it seems that programming a threaded micro-webserv...   May 20 2008, 20:59
- - oblikoamorale   well, at least I can enjoy the favicon now CODE v...   May 21 2008, 20:31
- - Hancoque   So, finally you did it. There is still a problem...   May 21 2008, 22:48
|- - Ritsl   QUOTE (Hancoque @ May 21 2008, 23:48) I...   May 22 2008, 01:15
- - soulruins   Great plugin! Thanks. My optimization for iPh...   May 22 2008, 15:14
- - oblikoamorale   soulruins: looks great! very thanks for postin...   May 22 2008, 16:09
- - Hancoque   I think it's no problem to generate (X)HTML co...   May 23 2008, 00:41
11 Pages V   1 2 3 > » 


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th August 2014 - 08:03