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 986863 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

foo_httpcontrol

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 (default) 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. default interface screenshot

Download
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
by vairulez
ajquery-xxx, by regor (most current and up-to-date template)

for mobile devices:
iPhone, by lxofith (vast improvement of Joror template) fix
G1 Android (also Chrome/Safari/Firefox/Opera/iPhone compatible), by Kev0 fix
for Android, by regi24

EDIT:
03.10.22 cleanup dead links, add ajquery-xxx


foo_httpcontrol

Reply #2
by default it is configured to be available on network interfaces via port 8888. http://127.0.0.1:8888/ should work.

do you see 'Bind successful' message in File/Preferences/Display/foo_httpcontrol page?

by the way, check foobar console for any error messages -- perhaps there is a problem with template files loading, they are expected to be found in foobar's components directory.

foo_httpcontrol

Reply #3
Extremely useful....have been using it for a long time...makes things a lot more productive...thx for the update!

foo_peter

foo_httpcontrol

Reply #4
Wow!! amazing... Thanks a lot !     
Works really fine here..
(Now the only thing I miss is the option to show "cover.jpg") 

A little issue: When you enqueue a whole folder, everything inside gets enqueued, (*.txt *.jpg...etc...)
Would be nice if it'd only enqueue audio files, but it's no big deal here...
Thank you very much!!!

foo_httpcontrol

Reply #5
Sorry if I bother you too much... but this little plugin is soooooo useful to me that I can't help it... 
You know... everything works perfectly from Opera,
Using it via wifi from my Palm browser, I can't change volume (although I see the vol box) and I can't seek... everything else works fine and fast!
Do you have an idea of what could be causing this behaviour?
I've been taking a look to the code, but I don't really have an idea about javascript...
Were really close to the perfect remote control to foobar!!!!!! 

foo_httpcontrol

Reply #6
Newb question here...

From Opera 9.26, I am trying to run pages from SpyTunes, such as this one:

http://spytunes.co.uk/S-E-P-R/Level1/Rhythm.html

There is a simple link to an MP3 file on the page. I'd like to click on it, and have it played through my Foobar player.

Is this what your control does? I downloaded and installed it, taking the default preferences, but I still get the same Opera error: "You need a plugin to view .... blah blah blah ..."

If your control does not serve this function, do you know how I can get thes clips playing from within Opera?

Thanks a lot.

foo_httpcontrol

Reply #7
I like the idea but with 70% cpu utilization when playing and the same blank page problem as has been reported by others I'd say you've got some more testing to do.

I'll definitely keep an eye on this. :) Keep it up!

foo_httpcontrol

Reply #8
Thank you so much for this.
There's a long time i was needing this kind of control. It's so useful for me

foo_httpcontrol

Reply #9
Using it via wifi from my Palm browser, I can't change volume (although I see the vol box) and I can't seek...
Do you have an idea of what could be causing this behaviour?


well, I have no idea about issues of palm browser. perhaps it doesn't recognise onchange event in dropdown list? all I can offer in this case is to provide opportunity to raise/lower volume level by a certain amount via buttons, instead of dropdown list. regarding the seek issue, it's a difficult question, as a matter of getting mouse coordinates is a weird issue even for pc browsers. I guess you'll have to do some research on this topic, and modify JS template section by yourself.
and thanks for the dir enqueue note!

TooSteep - I guess you chose the wrong tool for your task in this case...

regarding the problem with a blank page and (or) high cpu usage, perhaps monstrous playlist size might have something with it? I'll look into it later

foo_httpcontrol

Reply #10
Hi,

A little feedback after some testing.

In Firefox 2.0.0.13, volume and playback order dropdown boxes do not have any effects on foobar (i'm using foobar 0.9.5.1 with ColumnsUI 0.3 beta 1 preview 4). I also tested it in IE 6 and it works correctly so it's maybe something i should change in the templates to make it work with Firefox.

Also it seems there's a sorting problem when browsing folders and files on a network. They are sorted randomly in both IE and Firefox.

foo_httpcontrol

Reply #11
In Firefox 2.0.0.13, volume and playback order dropdown boxes do not have any effects on foobar (i'm using foobar 0.9.5.1 with ColumnsUI 0.3 beta 1 preview 4). I also tested it in IE 6 and it works correctly so it's maybe something i should change in the templates to make it work with Firefox.


yep, replacing all occurences of 'this.document' to just 'document' in control template should solve this.
btw, Chipicui, it might help with half of the problem you are having with palm browser too.

Also it seems there's a sorting problem when browsing folders and files on a network. They are sorted randomly in both IE and Firefox.


thats definitely weird, as I actually don't sort files in any way -- I just display what FindFirstFileW/FindNextFileW API functions return, and they do actually return alphabetically sorted data on my winxp sp2.
whats the specifics of your OS?

foo_httpcontrol

Reply #12
yep, replacing all occurences of 'this.document' to just 'document' in control template should solve this.
btw, Chipicui, it might help with half of the problem you are having with palm browser too.

Thanks a lot, it works now

 
thats definitely weird, as I actually don't sort files in any way -- I just display what FindFirstFileW/FindNextFileW API functions return, and they do actually return alphabetically sorted data on my winxp sp2.
whats the specifics of your OS?

About this 'problem', it's maybe my fault because i had not seen this in your first post :
- basic file browser functions, including ability to browse Microsoft Network;
In fact, my files which are stored on the network are on a network drive (Synology DS207) which seems to have some linux version as OS. Otherwise the OS of my computer is XP Pro SP2.

About the functionalities of your plugin, do you have already done what you need or do you still consider feature requests ?

foo_httpcontrol

Reply #13
...

TooSteep - I guess you chose the wrong tool for your task in this case...


Thanks for responding. I guess that means there is no Foobar plugin for Opera or I.E.?  Do you recommend any particular plugin for Opera for playing mp3's from an embeeded link such as:

<embed src="http://spytunes.co.uk/images/spytunes/rythms/basicstrpatL1/ex01.mp3" height="15" autostart="false" align="middle" id="rhythm" name="rhythm" alt=""></embed>

foo_httpcontrol

Reply #14
In fact, my files which are stored on the network are on a network drive (Synology DS207) which seems to have some linux version as OS. Otherwise the OS of my computer is XP Pro SP2.

eh, my bad, actually. seems like file order is not guaranted, according to documentation. no big deal anyway, I'll add a compulsive file list sort.
About the functionalities of your plugin, do you have already done what you need or do you still consider feature requests ?

to be honest, this thing satisfies my own needs by around 90% as it is now, but I wouldn't mind hearing suggestions as I still have some interest in messing with its development.

foo_httpcontrol

Reply #15
Useful plugin, I want to use it with my PSP, as a remote.

It worked once, then it's now always a blank page and 50-70% CPU usage...(check you don't have an active loop in your code, especially on an error)

foo_httpcontrol

Reply #16
Works great. (very handy)

Thank you!

foo_httpcontrol

Reply #17
Thanks for the plugin. One suggestion though: add the option of requiring a user name and password to access the page.
"Lifting Shadows Off a Dream"

foo_httpcontrol

Reply #18
updated...
Code: [Select]
    v0.6 30 Mar 2008
        fix: templates, here and there;
        fix: wrong state caused by starting on-paused foobar;
        fix: blank page and excessive cpu usage on insane playlist sizes;
        fix: compulsive list sort in file browser;
        fix: simultaneous enqueuements disabled;
        add: filter of enqueued items;
        add: configurable retrieval of playlist (for those who need as
             lightweight control page as possible)


foo_httpcontrol

Reply #20
(about sorting: the same behavior is noticed with php dir listing for example, where win will return alphabet and nix some random stuff)
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

foo_httpcontrol

Reply #21
Holy cow!!!!!!!!!!!!!!!!     
Thank you so much for the update!
Don't know what kind of magic you did to the template's code but now EVERYTHING works in my PalmTX.
Thanks to you, now I can have a fast remote control for foobar!
I'm extremely thankful...

One suggestion if you really want to go the extra mile: could you implement a drop-down list (or simply another web page) to change the active playlist?

Thanks a lot!     

foo_httpcontrol

Reply #22
A question:
How do you filter a folder to enqueue (for example)... only mp3 files?
Thanks

foo_httpcontrol

Reply #23
A question:
How do you filter a folder to enqueue (for example)... only mp3 files?
Thanks


actually I retrieve the list of foobar supported playable files for that. hmm, weird, looks like the extensions restriction I pass to foobar process_locations_async is not making any effect, and I overlooked that. additional filter of incoming filenames added, version 0.6 re-uploaded...

foo_httpcontrol

Reply #24
Thanks for the updated version


I got the plugin to crash foobar several times by enqueuing a directory (in
the www file broswer)