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

foo_httpcontrol

Reply #725
@oblikoamorale
Thank you  I just noticed I missed some API functions and helpers  I will post an updated version soon.

@foo_peter
With the next version  Because right now there is not much to describe, I will maybe include some keyboard shortcuts for the next one.

Which reminds me:

1) I am implementing multiselect - click an item, shift+click some place lower -> select all the items in between. Or Ctrl+Click a few items. I am saving those in an array, as I saw that the SetFocus accepts only one item. Is there an API call to select multiple items or should I continue with the client-side solution?

2) Also I was interested - any data on how often people use drag'n'drop to arrange a playlist ...  Since foobar is more of an audiophile's piece of software, usually albums are listened to in their exact order. I can easily implement drag'n'drop but I am still wondering if it will be useful.

3) Is there a way to include a file/folder at a specific position in the playlist, or is it always the last one. If it is I guess I can emulate this behavior with enqueue + save playlist size, listen for the playlist change, substract the saved playlist size from the new size, perform move of the resulting set of elements. Is this a good idea? Pros, cons, better ideas? I guess I will make drag'n'drop a config option, so the user will be able to turn this off.

Kindest regards,
Ivan


foo_httpcontrol

Reply #726
@vakata:
@Kev0:

Excellent work, on both fronts!!

foo_httpcontrol

Reply #727
1) I am implementing multiselect - click an item, shift+click some place lower -> select all the items in between. Or Ctrl+Click a few items. I am saving those in an array, as I saw that the SetFocus accepts only one item. Is there an API call to select multiple items or should I continue with the client-side solution?

SetFocus moves cursor, it doesn't manage selection. there are no means of managing selection at the moment.

2) Also I was interested - any data on how often people use drag'n'drop to arrange a playlist ...  Since foobar is more of an audiophile's piece of software, usually albums are listened to in their exact order. I can easily implement drag'n'drop but I am still wondering if it will be useful.

that would be quote useful! personally I thought of implementing this in my ajquery template but haven't figured out a working concept
anyways. even without proper selection stuff, this couple of commands should work, if you keep the selection data client-side.
Code: [Select]
Move one or more active playlist items
cmd=Move
param1=numbers separated by any delitemeter
param2=signed move delta


Code: [Select]
Delete one or more playlist items
cmd=Del
param1=numbers separated by any delitemeter
param2=optionally specifies playlist


3) Is there a way to include a file/folder at a specific position in the playlist, or is it always the last one. If it is I guess I can emulate this behavior with enqueue + save playlist size, listen for the playlist change, substract the saved playlist size from the new size, perform move of the resulting set of elements. Is this a good idea? Pros, cons, better ideas? I guess I will make drag'n'drop a config option, so the user will be able to turn this off.

nope, not at the moment. I'm using standard SDK's process_locations_async which appends added items.


foo_httpcontrol

Reply #729
First off thank you for making this plugin - I finally got this working after reading through the forum and found out I needed to set my listen on ip to 0.0.0.0 to get this picking up over my network.

What an excellent product and I love the ability to finally control foobar via my android.

Thanks

if your computers are in some kind of wired or wireless LAN, change "Listen on" field to 0.0.0.0 in component preferences (if it somehow is different) and follow this: http://www.hydrogenaudio.org/forums/index....st&p=669646


foo_httpcontrol

Reply #730
Hi
Vakata, thanks for sharing your impressive work
but I have issue with Firefox 3.6
It look like the same issue that I have describe [a href='index.php?act=findpost&pid=655265']here[/a]
thanks

foo_httpcontrol

Reply #731
Hi again - I just updated the theme a bit:

* Includes a settings panel - to show/hide some components & adjust playlist options & change skins
* Introduces experimental drag'n'drop - not thoroughly tested, but works in Firefox - will test more tomorrow
* User can now select (or multiselect using ctrl+click & shift+click) items in the playlist in order to mass move/delete/queue/deqeue

For the next version I will enable selection in the file browser and add drag'n'drop to that one too  (its just a bit more tricky)

Download here: http://vakata.com/foo

Cheers,
Ivan

@lucido - My firefox reloads just fine ... I will do some testing tomorrow and look into your issue.

foo_httpcontrol

Reply #732
thanks for the update Vakata but its not working properly for me, new version wont work unless the last version is in the data folder aswell.
if i can help anymore/elaborate please dont hesitate to ask, thanks


Edit: scrap that, i was having a major blonde moment, shame on me. thanks again vakata


foo_httpcontrol

Reply #734
I was just wondering about the SAQ command - does it depend on a foobar component? Sorry for the noob question

As for the theme - I made a few changes last night - will upload soon:
1) I just applied some fixes to some height calculations (when the path becomes more than one line)
2) playlist enqueueing is fixed- now consequent fast requests will be made until IS_ENQUEUEING is 0 again (regardless of the interval setting)

As for the upcoming changes:
1) I am beginning work on the shortcuts now ... I was wondering whether to make a config page or to just duplicate the default foobar2000 shortcuts.
2) The IS_ENQUEUEING fix will be extended a bit to allow drag'n'drop from the file browser panel - that will take a bit more time.
3) I am planning on a context menu too - it should quick and fast to implement.

After I am done with all those fixes I will run some tests in all major browsers, after the theme is functional in all modern browsers I will concentrate on the design a bit - I am not a designer, but the buttons need a bit of work - even I notice that

Any other ideas?

foo_httpcontrol

Reply #735
So, I'm having trouble with the lxofith theme, getting the album art to show.
I have foobar 1.0, latest version of this component and the correcy lxofith from the first post.
The theme otherwise works, but it just won't show album art - whether in Firefox or iPhone Safari.
Some other themes do, like the beautiful vakata one, but obvs I need one for my iPhone as well.

Any clues as to whether it's something in my setup? Does anyone have lxofith showing album artwork?

Ta for the great component btw.

foo_httpcontrol

Reply #736
@lucido - My firefox reloads just fine ... I will do some testing tomorrow and look into your issue.

Hi Thanks for quick answer
it work very fine when I testing on local but on the network I get this :

thanks

foo_httpcontrol

Reply #737
Any clues as to whether it's something in my setup? Does anyone have lxofith showing album artwork?

I had also problem showing bg artwork (if that's what you mean) with built-in Nokia browser, but works fine with Opera Mobile i.e.

foo_httpcontrol

Reply #738
I was just wondering about the SAQ command - does it depend on a foobar component? Sorry for the noob question

yep, it is built-in within this component and is disabled by default (check preferences). personally I use this feature a lot, but since there happened to be some people not happy with it, I made it disappearrable.

So, I'm having trouble with the lxofith theme, getting the album art to show.

I don't have iphone, but album art does show for me in the specified template in opera, ff and chrome. what kind of album art data do you have? where do you store it and how is it named? if your albumart is embedded, be sure to check 'retrieve embedded albumart' in preferences.

foo_httpcontrol

Reply #739
So, I'm having trouble with the lxofith theme, getting the album art to show.

I don't have iphone, but album art does show for me in the specified template in opera, ff and chrome. what kind of album art data do you have? where do you store it and how is it named? if your albumart is embedded, be sure to check 'retrieve embedded albumart' in preferences.


Hm, I have my album art as cover.jpg in the same folder as the album's mp3s. Some have embedded artwork but very few, and I do have that preference set.
As mentioned, it does show up in other themes such as the default theme - but not in lxofith.
It doesn't show up in FF or on the iPhone itself...

foo_httpcontrol

Reply #740
check firefox's javascript error log when you see no albumart, maybe it will give us some clue. otherwise I've run out of ideas.

foo_httpcontrol

Reply #741
First Post here, please be gentle with me!

Any HTC HD2 users tried out this plugin? 

I have been playing with this all day, great plugin!!!

The only problem I had was that the themes here are not designed for my screen resolution.  I was able to scale the iphone based designs up, but the quality looked well... meh!

Not being one to mooch around, and hopefully not the sort of person that would bitch about the excellent work of others, I started designing my own template...



I am not by any means a coder or designer, so I used/stole unrepentantly code from the IxoFith theme and design cues from the HTC music player.  I want to make a design that will blend well with the HTC HD2 UI.

I still have a lot of tidying up to do, but if there is any interest, I can post the theme up here...


foo_httpcontrol

Reply #742
check firefox's javascript error log when you see no albumart, maybe it will give us some clue. otherwise I've run out of ideas.


If I load up the page with the current lxofith I get this error:

Code: [Select]
Error: matches is not defined
Source File: http://0.0.0.0:8888/lxofith/iphonenav.js
Line: 306


which is fair enough. There's some inconsistent commenting around there:

Code: [Select]
    if (fooVars['playBackOrderRaw']) {
//        var matches = fooVars['playBackOrderRaw'].match(/value="([0-9])" selected/);
        fooVars.playBackOrder = matches[1];
//        setPlayOrder(fooVars.playBackOrder);
    }


Not sure how it's relevant to my problem but once I commented out the offending line, I got my artwork showing! Bonus! That section now reads:
Code: [Select]
    if (fooVars['playBackOrderRaw']) {
//        var matches = fooVars['playBackOrderRaw'].match(/value="([0-9])" selected/);
//        fooVars.playBackOrder = matches[1];
//        setPlayOrder(fooVars.playBackOrder);
    }



foo_httpcontrol

Reply #743
Hi
if it could help,
Firefox error log said :
Code: [Select]
Erreur : last_data.now_playing_time is undefined
Fichier Source : [url=http://192.168.2.3:8888/vakata2/script.js]http://192.168.2.3:8888/vakata2/script.js[/url]
Ligne : 329
when page don't reload

thanks

foo_httpcontrol

Reply #744
Hi
if it could help,
Firefox error log said :
Code: [Select]
Erreur : last_data.now_playing_time is undefined
Fichier Source : [url=http://192.168.2.3:8888/vakata2/script.js]http://192.168.2.3:8888/vakata2/script.js[/url]
Ligne : 329
when page don't reload

thanks

Have you tried downloading the latest version from http://vakata.com/foo, then deleting the vakata2 folder, and extracting the one from the archive?

Kindest regards,
Ivan

foo_httpcontrol

Reply #745
Not sure how it's relevant to my problem but once I commented out the offending line, I got my artwork showing!

interesting  where did you get this template? it clearly differs from my 'port'. I'd recommend you to download (and try) it from the first post of this thread, as the fix you applied might affect changing playback order and who knows what else.

I want to make a design that will blend well with the HTC HD2 UI.

I think it's better to share what you've achieved with everyone. I've seen big screen gadget users around, and they probably wouldn't mind having compatible template.

if it could help,
Firefox error log said

are you trying to connect via not very stable Wi-Fi connection?

foo_httpcontrol

Reply #746
Hello, I was wondering what the best iphone skin is/where can I obtain it! Also is there one that has an actual text search? Scrolling would be a pain as I have a zillion songs.

Thank you!!!!!

foo_httpcontrol

Reply #747
Have you tried downloading the latest version from http://vakata.com/foo, then deleting the vakata2 folder, and extracting the one from the archive?

Kindest regards,
Ivan

Hi
yes I use the latest version
actions are performed  (like search, play or next) but the left panel is empty untill I refresh number of times
file browser panel work fine

Quote
are you trying to connect via not very stable Wi-Fi connection?

I don't think so (I use ajquery without any problems )

thanks both for your answers

foo_httpcontrol

Reply #748
Not sure how it's relevant to my problem but once I commented out the offending line, I got my artwork showing!

interesting  where did you get this template? it clearly differs from my 'port'. I'd recommend you to download (and try) it from the first post of this thread, as the fix you applied might affect changing playback order and who knows what else.


Strange... I definitely got it from this thread initially.
When it wasn't working, I went googling and found this page but clearly they were outdated.
I was pretty sure when I tried fixing it, I deleted everything from the lxofith directory and replaced it with the files from the lxofith.rar in the first post of this thread, but maybe I had an older version?

Anyway, thanks. Working now.

 

foo_httpcontrol

Reply #749
I've had a stab at making the modified version of the LxOfIth template scalable to different screen sizes. Its still a work in progress, not everything is working quite as it should, but I'm limited in what I can test it with, so before I spend any more time on it wondered if anyone might give it a try on different sized mobile devices.


Theres probably a better way of doing doing it, but thought I'd have a go anyway.

scalable_test

!WORK IN PROGRESS!