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

foo_httpcontrol

Reply #700
yes, you are doing something wrong. you're using old imcompatible templates with new component.
please read the first post carefully and take version requirements of listed templates to consideration.

foo_httpcontrol

Reply #701
I installed the lxofith template for the 1.0 component, which already includes the config-file. This (in contrary to the latest lxofith for 0.96) have some weird issues with positioning and usability (quite similar to early lxofith releases). I even tried to put the 0.22 version on top of it, but didn't fix the behavior.
Can't wait for a HD-AAC encoder :P

foo_httpcontrol

Reply #702
maybe, I haven't tested lxofith template conversion much. it mostly works in ff/opera/chrome, so the rest of the fixing is up to you.

foo_httpcontrol

Reply #703
How much was changed from 0.96 to 1.0 (template-wise)???

I thought it was merely export of the preferences to the config-file for each template.
Can't wait for a HD-AAC encoder :P

foo_httpcontrol

Reply #704
not much, config settings and necessity of absolute url references are the only things iirc.

it appears there were a weird error in lxofith conversion javascript code. I've fixed it, check if it helps.

foo_httpcontrol

Reply #705
RE: yes, you are doing something wrong. you're using old imcompatible templates with new component.
please read the first post carefully and take version requirements of listed templates to consideration.
>>>Thanks for quick response. I could swear that the first post has been updated within the last 24 hours 
Now,  if I understand correctly the templates listed under "User submitted templates for version 0.96.3 and newer" should work correctly with foobar2000 1.0+ component and its only the matter of using those ones.

foo_httpcontrol

Reply #706
I have just adapted one of my (unpublished) templates for the iPhone to the new conponent version (0.96.4).

Everything´s fine exept one little thing.
In my javascript I use the functions command, retreivestate and _sheduled from your ajquery template. Anything else is from me.

There I use an empty 'command()' with a button for refreshing all content manually.

It still works basically with version 0.96.4 but NOT for streams. If metadata is updated there I can´t get it with command().

This setting had no problems in earlier versions of http_control, so my question, did you change anything concerning updating of helpers for dynamic sources?

foo_httpcontrol

Reply #707
RefreshPlayingInfo command updates helpers using current metadata. somehow it is not documented, will fix in further versions. so call it when it seems like stream is playing (playing length is unknown).

foo_httpcontrol

Reply #708
great! works for everything now (also albumart). Thanks a lot!

foo_httpcontrol

Reply #709
Just reinstalled windows and re-set up foobar.  A lot of stuff changed since I last did it.

Got the ajquery template and LOVE it.

I'm a css noob though--can someone tell me which lines of the index.html I'd want to modify to change the color scheme of the template?

I am guessing it's lines 12-47...  Should I just look for anything with a color value and just mess around?

foo_httpcontrol

Reply #710
you can build your own jquery ui theme http://jqueryui.com/themeroller, download it, extract theme data (found in css directory of downloaded zip archive) to ajquery/css, and change theme reference url in line 10 of index.html
BUT. current implementation assumes user won't use anything beside default theme (smoothness) and some colors have been hardcoded assuming theme won't be changed. so you have to sweep through the template and change whatever colors have to be changed to fit your new theme.
maybe some day I'll strip hardcoded colors and make template rely on colors provided by jquery ui theme.

foo_httpcontrol

Reply #711
Hi thanks for the great plug in.

Just wondering how to get the iphone templates as the links at the begining of the post dont seem to work.

foo_httpcontrol

Reply #712
Hi thanks for the great plug in.

Just wondering how to get the iphone templates as the links at the begining of the post dont seem to work.


All of the links seem to work for me... they all bring you directly to a download of the template.


foo_httpcontrol

Reply #714
Hi, would it be possible that the PlayRandom function acts like the random button in foobar, namely that when you are in Shuffle (albums) mode, it should pick randomly one album and start playing it from the start, instead of picking a random song. Just try to make an api call to the foobar function I think that'd be easier.

Other than that I'm in the process of building a frontend for it as a mobile application and it works fine so far so thanks

foo_httpcontrol

Reply #715
fixed, thanks for reasonable suggestion.

foo_httpcontrol

Reply #716
Other than that I'm in the process of building a frontend for it as a mobile application and it works fine so far so thanks


sounds interesting, details please! screen resolution?

foo_httpcontrol

Reply #717
Other than that I'm in the process of building a frontend for it as a mobile application and it works fine so far so thanks


sounds interesting, details please! screen resolution?

Well... it's built in actionscript with the beta of Ellips Studio ( http://developer.openplug.com/ ), so it could be made to run on most devices independant of screen size in theory.. however I have a ton of other things to do and this is not so high on my priority list since Ellips can only build for android1.6+ and my HTC Hero is stuck on 1.5 so my personal interest is not very high at the moment. I'll be sure to post most news here if it ever reaches a usable-by-public point, at the moment it has too many hardcoded fields and doesn't support half the functionnalities of the web interface :/

foo_httpcontrol

Reply #718
anyways, thx for your reply! i'll be watching you...

foo_httpcontrol

Reply #719
First off, thanks to the developer of this addon, I use it on my android g1 and it's damn useful.

Also hers some useful information for anybody using kev0's skin. I found that when using the browse function it would only show 11 files/folders. To fix this you can open the styles.css file found in the kev0 skin directory and remove the line "   height: 397px;" (line 484). This will scale the height of the page to the amount of files and folders in the current directory.

(and yes, I did just sign up to post this)

EDIT: Also, just wondering if anyone can help me with something? I'm trying to make it so that when a file is chosen in the browser it plays it straight away, rather than queueing it in the current playlist.

Code: [Select]
    }
    document.getElementById("browseList").innerHTML = browser;
    for(var i=0;i<fooVars.browser.length;i++) {
        if (!fooVars.browser[i].p) continue;
        eval("document.getElementById('browserli" + i + "').onclick = function(e) { sendCommand('Browse','" + fooVars.browser[i].pu + "'); };");
        eval("document.getElementById('browserli" + i + "').ongestureend = function(e) { playNow('" + fooVars.browser[i].pu + "'); };");
        eval("document.getElementById('browserimg" + i + "').onclick = function(e) { sendCommand('Browse','" + fooVars.browser[i].pu + "','EnqueueDirSubdirs','NoResponse',function(){setTimeout(getState,1000);}); e.stopPropagation(); };");
    }
}


I'm pretty sure something needs editing there, but I don't know what exactly. (those are lines 207-215 in "\foo_httpcontrol_data\kevo\iphonenav.js")

foo_httpcontrol

Reply #720
EDIT: Also, just wondering if anyone can help me with something? I'm trying to make it so that when a file is chosen in the browser it plays it straight away, rather than queueing it in the current playlist.

I'm afraid there is no straightforward way to start playback of added item(s) immediately. however, there is a not quite elegant workaround:
- remember playlist size prior to adding items;
- perform addition;
- query [IS_ENQUEUEING] shortly afterwards to make sure addition is complete, or keep querying while macro returns 1, otherwise proceed to next step;
- start playback of item number remembered in first step.

 

foo_httpcontrol

Reply #721
Just created a small theme of my own, and decided to share ... maybe I missed some stuff from the API - if anyone likes it I will continue working on it. Should work in any modern browser.

Ivan

foo_httpcontrol

Reply #722
extremely good work, thanks for sharing! there is much to learn from your html/js/jquery coding approach

foo_httpcontrol

Reply #723
@Vakata
I miss the readme file

foo_httpcontrol

Reply #724
Dont know whether this will be of use to anyone else, it is a rather specific application...

But I've had a breakthrough in controlling speaker output through httpcontrol.


Nothings finished yet, but I have each rooms speakers on a separate output jack. I recently come across zvolume which can control balance and volume on each output.....via command line!! wooooo.

So so far I have preset batch files, eg the folowing mutes all except the headphones.

Code: [Select]
zvolume /r=0 /l=0 /f=Master Volume:Bed 1 /e
zvolume /r=0 /l=0 /f=Master Volume:Bathroom /e
zvolume /r=0 /l=0 /f=Master Volume:Bed 2 /e
zvolume /r=75 /l=75 /f=Master Volume:Headphones /e


I've then added these batch files with foo_run, and with httpcontrol and foo_runcmd I can execute them from my remote device! Sonos etc, eat your (expensive) heart out.

Code: [Select]
"/kevo/?cmd=CmdLine&param1=%22%2fruncmd-playing%3dRun%20service/Vol_Headphones%22"



I've not finished implementing the controls on the remote template yet, and it wont be a "one size fits all" anyway. But thought I would share the process, as it wouldn't have been possible (or at least as easy/sexy) without httpcontrol.