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: New Android application (using foo_httpcontrol and foo_playcount) (Read 37374 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

New Android application (using foo_httpcontrol and foo_playcount)

I've just released a first version of an Android app.

If anyone interested:
http://foobar2000controller.blogspot.com/

Hope you enjoy it.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #1
I've just released a first version of an Android app.

If anyone interested:
http://foobar2000controller.blogspot.com/

Hope you enjoy it.


Hi Regi24,

Trying your  app have moved to my main system which is XP Pro , "foobar2000controller" directory copied into c:\program files\foobar\foo_httpcontrol_data (regular installation).

HTTP access works fine from my Ipod Touch using std. templates  , but on my Android 2.1 phone getting a connection error! - verify settings please ,

IP address of PC entered and just using defaults for rest of settings


Any ideas?? what could be missing/wrong

New Android application (using foo_httpcontrol and foo_playcount)

Reply #2
I've just released a first version of an Android app.

If anyone interested:
http://foobar2000controller.blogspot.com/

Hope you enjoy it.


Hi Regi24,

Trying your  app have moved to my main system which is XP Pro , "foobar2000controller" directory copied into c:\program files\foobar\foo_httpcontrol_data (regular installation).

HTTP access works fine from my Ipod Touch using std. templates  , but on my Android 2.1 phone getting a connection error! - verify settings please ,

IP address of PC entered and just using defaults for rest of settings


Any ideas?? what could be missing/wrong


Could you post me a screenshot of your httpcontrol plugin config in foobar?

Anyway, could you try to place the folder "foobar2000controller" in " %APPDATA%\foobar2000\foo_httpcontrol_data\ " ? This is actually where it should be if your foobar2000 installation is standard (not portable).

Thanks.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #3
Moved foo_httpcontrol_data and its contents to " %APPDATA%\foobar2000\foo_httpcontrol_data\ " get same error. Installation is definately Standard  Foobar 1.1.1

Now httpcontrol fails on my Ipod Touch

Error from console log - looking for httpcontrol_data in C:\Program files\foobar..  Remember now trying to get it to work on my XCP Pro sys not Windows 7 one

foo_httpcontrol: error loading C:\Program Files\foobar2000\foo_httpcontrol_data\ajquery\config


New Android application (using foo_httpcontrol and foo_playcount)

Reply #4
Moved foo_httpcontrol_data and its contents to " %APPDATA%\foobar2000\foo_httpcontrol_data\ " get same error. Installation is definately Standard  Foobar 1.1.1

Now httpcontrol fails on my Ipod Touch

Error from console log - looking for httpcontrol_data in C:\Program files\foobar..  Remember now trying to get it to work on my XCP Pro sys not Windows 7 one

foo_httpcontrol: error loading C:\Program Files\foobar2000\foo_httpcontrol_data\ajquery\config



That's strange.. The templates should not be placed in "C:\Program files...." but in "%APPDATA%\...." as it's here explained: http://code.google.com/p/foo-httpcontrol/w...nstallation#whb

Can you do the following?
  • Set your system up like it was working OK with your iPod touch
  • Place the foobar2000controller folder there
  • Start foobar
  • Start foobar2000 controller in your Android device
  • Open the Console in foobar
  • Try to connect from Android
  • Paste here the Console output


P.S. You are using the last foo_httpcontrol version, right?

Thanks.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #5
Running Httpcontrol 0.97.4


Console log showing Touch access to ajquery template .. Android tried after this nothing on log at all .. N.B I also left a foobar2000controller folder under %appdata% folder

foo_httpcontrol: [ 13.01 22:38:16 ] 192.168.1.102    /ajquery/index.html     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:16 ] 192.168.1.102    /ajquery/js/jquery-1.4.2.min.js     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:16 ] 192.168.1.102    /ajquery/js/jquery-ui-1.8.custom.min.js     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:17 ] 192.168.1.102    /ajquery/&param3=js/state.json     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:17 ] 192.168.1.102    /ajquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:18 ] 192.168.1.102    /ajquery/css/smoothness/images/ui-bg_glass_75_ffffff_1x400.png     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:18 ] 192.168.1.102    /ajquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5

New Android application (using foo_httpcontrol and foo_playcount)

Reply #6
Running Httpcontrol 0.97.4


Console log showing Touch access to ajquery template .. Android tried after this nothing on log at all .. N.B I also left a foobar2000controller folder under %appdata% folder

foo_httpcontrol: [ 13.01 22:38:16 ] 192.168.1.102    /ajquery/index.html     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:16 ] 192.168.1.102    /ajquery/js/jquery-1.4.2.min.js     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:16 ] 192.168.1.102    /ajquery/js/jquery-ui-1.8.custom.min.js     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:17 ] 192.168.1.102    /ajquery/&param3=js/state.json     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:17 ] 192.168.1.102    /ajquery/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:18 ] 192.168.1.102    /ajquery/css/smoothness/images/ui-bg_glass_75_ffffff_1x400.png     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
foo_httpcontrol: [ 13.01 22:38:18 ] 192.168.1.102    /ajquery/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png     : Mozilla/5.0 (iPod; U; CPU iPhone OS 4_2_1 like Mac OS X; en-gb) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5


If there's no log from Android that means that there's no communication between Android and foobar.

Are you able to acces ajquery's template from Android's browser?

New Android application (using foo_httpcontrol and foo_playcount)

Reply #7
Get a HTTP Error 504 Gateway timeout,

Just got a connection  my WI-FI is not connecting automatically ..  Will have a play and let you know how I get on .. Thx for your assistance in resolving

New Android application (using foo_httpcontrol and foo_playcount)

Reply #8
First impressions of your work is very good, have had a couple of force close msg's but thats probably me as I only got the Android phone at xmas and still figuring it out , does a lot more than my previous  brick!!. 

The main plus for me  is being able to rate songs as I have only recently went digital so majority of my stuff is not rated and having to keep going to laptop every song to click stars  was a real PITA.. So  Regi24  a big thumbs up from me.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #9
First impressions of your work is very good, have had a couple of force close msg's but thats probably me as I only got the Android phone at xmas and still figuring it out , does a lot more than my previous  brick!!. 

The main plus for me  is being able to rate songs as I have only recently went digital so majority of my stuff is not rated and having to keep going to laptop every song to click stars  was a real PITA.. So  Regi24  a big thumbs up from me.


I'md glad you've managed to get it working!

I'm also glad that you've liked it

Next coming versions have some UI speed improvements and also some improvements to avoid any possible "wait or force close message".

New Android application (using foo_httpcontrol and foo_playcount)

Reply #10
0.2 version of component released , available from  link on authors post 1

New Android application (using foo_httpcontrol and foo_playcount)

Reply #11
it doesnt work with the latest httpcontrol 0.97.5, so I turn back to 0.97.2 and it works.

it's awesome, just like the remote on the ios.

sorry for my poor english...

New Android application (using foo_httpcontrol and foo_playcount)

Reply #12
it doesnt work with the latest httpcontrol 0.97.5, so I turn back to 0.97.2 and it works.

it's awesome, just like the remote on the ios.

sorry for my poor english...

Can confirm it doesn't work with latest httpcontrol  97.5 but it works  with  0.97.4 , I've rolled back to 97.4 as I'm  not dropping use of  this great  app. for even a short time.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #13
Working again  in 0.97.6 ..

New Android application (using foo_httpcontrol and foo_playcount)

Reply #14
Working again  in 0.97.6 ..


Thanks for testing the app so thoroughly!

There was something added in the 0.97.5 and then removed in the 0.97.6 because it was causing problems.

I'm about to release the 0.3 version. I'll release it  (if everything goes OK) tomorrow evening (GMT+1 time).

sunvolt, I'll send you an e-mail

New Android application (using foo_httpcontrol and foo_playcount)

Reply #15
Working again  in 0.97.6 ..


Thanks for testing the app so thoroughly!

There was something added in the 0.97.5 and then removed in the 0.97.6 because it was causing problems.

I'm about to release the 0.3 version. I'll release it  (if everything goes OK) tomorrow evening (GMT+1 time).

sunvolt, I'll send you an e-mail


0.3 released as promised.
Enjoy.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #16
Thanks for your work.
Now it works fine with 0.7.6.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #17
Hi mate! Awesome work on the app! However I can't seem to get it working on my phone (Nexus One). It WAS working for a short while initally though after the foobar2000controller update as well as some fiddling with my WiFi, it has stopped working lately. I can access the default template from the phone's browser and can control the music.

When I try testing the connection from within the app however, it does not get a successful connection. Everything is installed in the correct (default) places as I ran the provided .exe and installed the app. The only settings I have changed is the IP Address to access the files from. Again this works (for the default template) either on the computer or my phone's browsers.

I am confused as to why it can't connect....


New Android application (using foo_httpcontrol and foo_playcount)

Reply #19
Hi mate! Awesome work on the app! However I can't seem to get it working on my phone (Nexus One). It WAS working for a short while initally though after the foobar2000controller update as well as some fiddling with my WiFi, it has stopped working lately. I can access the default template from the phone's browser and can control the music.

When I try testing the connection from within the app however, it does not get a successful connection. Everything is installed in the correct (default) places as I ran the provided .exe and installed the app. The only settings I have changed is the IP Address to access the files from. Again this works (for the default template) either on the computer or my phone's browsers.

I am confused as to why it can't connect....


Can you try to acces to this webpage: "http://YOURIP:PORT/foobar2000controller" and show me the output?

Try both from your Android and your PC.

Thanks.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #20
The output consists of songs that I have in my playlist..:

{ "playlist": [{"artist": "Basement Jaxx", "album": "The Singles", "track": "Red Alert", "len": "3:38", "rating": "?", "queued":"","playCount": "1"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Good Luck", "len": "3:32", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Romeo", "len": "3:27", "rating": "?", "queued":"","playCount": "1"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Oh My Gosh", "len": "3:58", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Bingo Bango", "len": "3:48", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Where's Your Head At", "len": "4:00", "rating": "?", "queued":"","playCount": "1"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Rendez Vu", "len": "3:45", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Jump 'n' Shout", "len": "3:39", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Lucky Star", "len": "2:34", "rating": "?", "queued":"","playCount": "1"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Plug It In", "len": "3:20", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "U Don't Know Me", "len": "3:36", "rating": "?", "queued":"","playCount": "1"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Do Your Thing", "len": "4:20", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Jus 1 Kiss", "len": "3:38", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Fly Life", "len": "4:05", "rating": "?", "queued":"","playCount": "0"},{"artist": "Basement Jaxx", "album": "The Singles", "track": "Samba Magic", "len": "4:57", "rating": "?", "queued":"","playCount": "0"}], "playlists" : [{"name":"&&0&&Library (filtered)","count":"50"},{"name":"Default","count":"3"},{"name":"DI Radio","count":"42"},{"name":"Aussie Hip-hop","count":"93"},{"name":"Kanye, Kid & Wiz","count":"115"},{"name":"Dubstep","count":"73"},{"name":"Temp","count":"15"}], "currentPlaylist" : "6", "pages":"1", "foc":"2", "playingItem":"?", "ic":"?", "playbackOrder":"4", "volume": "100", "volumeDB":"0", "isPlaying": "0", "currentPage": "0", "searchRequest":"", "currentTrack": "?", "trackPosition": "0", "trackLength": "0", "rating": "", "helper2": "", "codec": "", "albumArt": "/foobar2000controller/img/nocover.png", "playlistItemsPerPage": "60" }

New Android application (using foo_httpcontrol and foo_playcount)

Reply #21
Do you get the same output in Android?

This output is actually fine.. which versions of foo_httpcontrol are you using?

New Android application (using foo_httpcontrol and foo_playcount)

Reply #22
Hello regi24
do you think you could maintain a solution for downloading the apk from your blog or other way than market
for those who, like me, are in country where the market doesn't show your appli?
In fact, even if your remote does not work, already for Android 2.3.x (as we talk about that in a comment of your blog), i hope market from my country will soon make available your apk. Mainly because i would like to donate and contribute to your project with the hope that you maintain this good job, and try to make it works with earlier version of android sdk.
Kind regards

(CurtisHead)

Edit: Apk inaccessible from my market
      tried aswell from web market, apk present, but "incompatible with my device" (impossible to select the device and to continue purchase).

New Android application (using foo_httpcontrol and foo_playcount)

Reply #23
for those conserning:

Quote
[...]Oh..I know what's the problem.. version 2.3.2.. The Android Market is filtering the application because it's not supported for 2.3 and higher.. :/
I hope I can find out what's happening with 2.3 (the same code works fine for 1.5-2.2...!!!) for the next version [...]
regi24


thx regi24 for your answer.

New Android application (using foo_httpcontrol and foo_playcount)

Reply #24
Hey regi24, yea I can the same output from my Android browser. However, it could have something to do with the fact that I am running Cyanogen Mod Nightly builds on my Nexus One, so I have v2.3.2 of Android installed. I am running version 0.97.6 of foo_httpcontrol.

That also brings me to the same problem as kabuki. I can't update to the latest version as it does not show up on the Android market, or shows in the web market but says is incompatible with my device.