maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Ampache client for N900 (https://talk.maemo.org/showthread.php?t=65625)

nesnomis 2010-11-14 20:36

Ampache client for N900
 
Since we have both iphone and android phones connecting to our Ampache server in the household (and my N900 did'nt ) i thought i would make an Ampache client, and so MaAmp was born.

http://hansim.no-ip.org/wp-content/g...reenshot27.png

It is an early version, but it can:
  • Connect to Ampache server
  • Get list of artists
  • Play albums
  • Auto-rotation

Future functions (if time allows it):
  • MAFW Backend?!
  • Playlists?!
  • Download album/song?!
  • Bugfixing and cleaning!... :)
  • Localplay on server!?

Even though it works fine for me, it would be nice if somebody with an Ampache server could test if it installs, and works for them?! I am also open for suggestions, tips, help etc.... :) .... Btw. I am not a programmer, and it is my first attempt at python, Qt... So, be gentle!... :)

It is in Fremantle Extras-devel and maybe in Fremantle Extras-testing.

Check out MaAmp

Sodki 2010-11-21 19:21

Re: Ampache client for N900
 
Hello, I've been trying to use this application to access my Ampache installation, but I always get an "unable to authenticate" message.

I think I might not be using the right server address. Mu Ampache installation can be accessed via: http://musica.sodki.org/login.php

In the MaAmp settings, what should I put in the Server? http://musica.sodki.org?

Thank you for this application, it looks wonderful.

nesnomis 2010-11-21 20:58

Re: Ampache client for N900
 
Quote:

Originally Posted by Sodki (Post 879707)
Hello, I've been trying to use this application to access my Ampache installation, but I always get an "unable to authenticate" message.

I think I might not be using the right server address. Mu Ampache installation can be accessed via: http://musica.sodki.org/login.php

In the MaAmp settings, what should I put in the Server? http://musica.sodki.org?

Thank you for this application, it looks wonderful.

Yepp... http://musica.sodki.org should work!... :) ... it automatically adds /server/xml.server.php to the url, so the url should point to the place where the /server folder is...

Thankyou for testing the application!... :)

Sodki 2010-11-23 17:46

Re: Ampache client for N900
 
I still can't connect. What version of Ampache do you connect to? I use version 3.5.0.

nesnomis 2010-11-24 07:37

Re: Ampache client for N900
 
Quote:

Originally Posted by Sodki (Post 881335)
I still can't connect. What version of Ampache do you connect to? I use version 3.5.0.

I am using version 3.5.4, but the xml api should work from 3.5.0 and up.. The authentication is based on time+key, so maybe it is a time problem? I have only used wlan connection when using it and i dont know if slower connections could be a problem?!

Edit: Tried it on gprs and it works fine here... so, slower connections should work...

nesnomis 2010-11-24 08:08

Re: Ampache client for N900
 
Ah... i see why....

"The API is disabled out of the box in versions earlier Ampache 3.5.4. You will need to make a few modifications to the default Ampache configuration. "

So, you have to set the acl type RPC to the start and end address you want to allow access via XML-RPC ..:) ... I have

ACL type: RPC
Start address: 0.0.0.0
End address: 255.255.255.255
Level and user: All

(i guess it is default in Ampache 3.5.4 and up)

Read more here... http://ampache.org/wiki/xmlapi

mikfri 2010-12-11 14:40

Re: Ampache client for N900
 
I'm happy you've built this wonderful client for N900 but as with pretty much all the clients out there it is slow to be almost unusable on big catalogs. So far the only client I've tried that works decently despite a big catalog is Lullaby for Android.

My catalog statistics:
Albums: 8428
Artists: 6851
Songs: 89912
Catalog Size: 485.77 GB

nesnomis 2010-12-11 15:02

Re: Ampache client for N900
 
Quote:

Originally Posted by mikfri (Post 894677)
I'm happy you've built this wonderful client for N900 but as with pretty much all the clients out there it is slow to be almost unusable on big catalogs. So far the only client I've tried that works decently despite a big catalog is Lullaby for Android.

My catalog statistics:
Albums: 8428
Artists: 6851
Songs: 89912
Catalog Size: 485.77 GB

That is a catalog much bigger than mine... :) ..

MaAmp is caching artist data on the first run, and progressively caching albums and album art as you browse the albums (rather crude cache). I think i will try to check out how lullaby does (it was crashing on the only android phone we have here, so i can't test how fast it is). One thing i can do is change caching to a sqlite database (as the native media player does).

As there was almost no response on MaAmp here, i had stopped developing... But it would be interesting to try to optimize it a bit :)

Cross 2010-12-17 02:08

Re: Ampache client for N900
 
Works very nice... I would like to get an album list.

I just installed my whole setup today;

LAMP using Peppermint ICE
Ampache
put the media where it needed to be
and now this on my N900... Amazing!

Thank you sir.

Hawkboy 2011-01-02 12:28

Re: Ampache client for N900
 
Hi, this looks like the app i'm looking for. I use the flashplayer right now but would love to use an app.

I can't seem to find it to install it. Do I need to add some extra repositories or something like that?

Cheers,
Bart

nesnomis 2011-01-03 06:55

Re: Ampache client for N900
 
It's in the Extras-testing repo... :)

DragoslaV 2011-01-03 08:54

Re: Ampache client for N900
 
Thank you for the app! I just switch back from my Android to my N900 because I had issue's streaming FLAC.

I have no issue with connecting. This works without a hiccup. I do have some issue's with playing a few certain FLAC files. I will turn on my ampache log tonight to discover the error.

Some ideas:
1. Add a view for browsing music by "Album" and by "Tag"(=Genre), the view on playlist would be really helpful to.
2. Add playback support for random and to auto-start the next song.

Thanks again for the delightful app!

*edit*
It seems my catalog was messed up. I updated it and my problem was gone.

Hawkboy 2011-01-03 14:53

Re: Ampache client for N900
 
I got it up and running, and it works pretty smooth. I will play around with it a bit in the next few days.

Thanx,
Bart

Hawkboy 2011-01-05 16:07

Re: Ampache client for N900
 
Hi,

I have been using MaAmp for a couple of days now and here is some early feedback;

1. It seem to draw more power than using ampache through the webclient. I'm not 100% sure this is true though.
2. It would be really nice if the app would try and cache the whole song (like the flashplayer does). When I commute my 3G isn't always that good and when I lose connection the song stops playing.
3. A browse by album feature would be nice and by year

Thats it for now. Thanks again for this app!

Bart

epitaph 2011-01-05 16:27

Re: Ampache client for N900
 
Quote:

Originally Posted by nesnomis (Post 894686)
That is a catalog much bigger than mine... :) ..

MaAmp is caching artist data on the first run, and progressively caching albums and album art as you browse the albums (rather crude cache). I think i will try to check out how lullaby does (it was crashing on the only android phone we have here, so i can't test how fast it is). One thing i can do is change caching to a sqlite database (as the native media player does).

As there was almost no response on MaAmp here, i had stopped developing... But it would be interesting to try to optimize it a bit :)

Nice work for a noob! If you want to speed up caching and searching you might interested in binary trees, avl, black-and-red, radix-trie, patricia-trie, perhaps quadtrees too. BTW how do you learn python and maemo so fast? Do mind to share a good websiter or a link or book-title?

esiravegna 2011-01-13 01:07

Re: Ampache client for N900
 
Just tried today, fantastic app! Any chances of getting playlists support?

Thanks!

DragoslaV 2011-01-22 11:53

Re: Ampache client for N900
 
I been using it a bit more and I stumble upon a new feature request:

* It would be very nice if we could add more then 1 album to the playlist!

Sodki 2011-02-05 16:45

Re: Ampache client for N900
 
Quote:

Originally Posted by Sodki (Post 881335)
I still can't connect. What version of Ampache do you connect to? I use version 3.5.0.

After adding ACL for RPC in Ampache I could connect via Maamp... and love it!

tbressure 2011-02-09 09:38

Re: Ampache client for N900
 
Hello,

This software perfectly work for me.

Does it play the music on the fly using streaming or does it download the file then play the media ?
I've noticed that there was a delay between the song starts over a 3G connection.

Nevermind, this software can help when on the go and absolutly need to hear to a song :D

Sodki 2011-02-09 13:53

Re: Ampache client for N900
 
Quote:

Originally Posted by tbressure (Post 939768)
Does it play the music on the fly using streaming or does it download the file then play the media ?

I strongly believe it uses streaming.

cazze 2011-03-14 19:38

Re: Ampache client for N900
 
This is amazing!!! Please don't stop developing this app. Localplay on server would be fantastic. Can you make a package for N810 diablo also? I have a N810 laying around and it would be a super ampache client to control my localplay mpd server :-)

heavyt 2011-06-14 16:40

Re: Ampache client for N900
 
Yes I am also a N810 owner who would love to see maamp package, thanks!

zurrain101 2011-06-14 19:34

Re: Ampache client for N900
 
hey im new to ampache. do we have to register an account?because it asks for username n password. how can i create account?
thanks

jedi 2011-06-14 20:33

Re: Ampache client for N900
 
Quote:

Originally Posted by zurrain101 (Post 1029179)
hey im new to ampache. do we have to register an account?because it asks for username n password. how can i create account?
thanks

You need your own Ampache server - you'd normally install it on a home PC... http://ampache.org/

zurrain101 2011-06-14 20:55

Re: Ampache client for N900
 
it doesnt install on windows/ its tar.gz file for linux

jedi 2011-06-14 21:05

Re: Ampache client for N900
 
Quote:

Originally Posted by zurrain101 (Post 1029223)
it doesnt install on windows/ its tar.gz file for linux

Yes. That's correct. http://www.ubuntu.com/download

zurrain101 2011-06-14 21:23

Re: Ampache client for N900
 
how can i install on windows?

jedi 2011-06-14 22:04

Re: Ampache client for N900
 
Quote:

Originally Posted by zurrain101 (Post 1029223)
it doesnt install on windows/ its tar.gz file for linux

I think I've detected a fluctuation in the space-time continuum...

nesnomis 2011-06-15 06:25

Re: Ampache client for N900
 
Quote:

Originally Posted by heavyt (Post 1029061)
Yes I am also a N810 owner who would love to see maamp package, thanks!

I will try to look into it.... There are a lot of things i would love to do with MaAmp... (QML etc.)... But i dont seem to find the time for it right now... I dont have a N810 but i guess it could work fine as it
is Python and QT!? ...

And im sorry for not anwsering questions or requests so often... :o ...

Midyr 2011-06-20 17:16

Re: Ampache client for N900
 
Hi,

thanks for the realy nice app!
Most of my music are ogg and there seems a problem with it. In an album with mp3 everything seems to be ok, but if there an ogg album the slider don't work and primarily only one song is played. The GUI switches to the next song but it only played if I click "pause".

It would be also great, if there also an "Album"-Button to search.

Thanks a lot

Midyr

nesnomis 2011-06-21 05:55

Re: Ampache client for N900
 
Quote:

Originally Posted by Midyr (Post 1032954)
Hi,

thanks for the realy nice app!
Most of my music are ogg and there seems a problem with it. In an album with mp3 everything seems to be ok, but if there an ogg album the slider don't work and primarily only one song is played. The GUI switches to the next song but it only played if I click "pause".

It would be also great, if there also an "Album"-Button to search.

Thanks a lot

Midyr

Seems like a bug in QT phonon, i will test with some ogg albums here, and see if i get the same errors. It should work the same with all formats supported by phonon though!? ...

Edit: Ok, i was able to get the same errors with ogg. Now i have to find the time to fix things i guess... :)

Midyr 2011-07-31 18:57

Re: Ampache client for N900
 
Quote:

Originally Posted by nesnomis (Post 1034091)
Seems like a bug in QT phonon, i will test with some ogg albums here, and see if i get the same errors. It should work the same with all formats supported by phonon though!? ...

Edit: Ok, i was able to get the same errors with ogg. Now i have to find the time to fix things i guess... :)

Hi,
are there any good news about the problem? Or any help I can do?

Greets

Midyr

gazza_d 2011-10-05 12:58

Re: Ampache client for N900
 
How do I reset configuration data for MaAmp? Mine fails to connect to my Ampache server with an "unable to get artist data -- check ampache" error.

My Ampache install is working just great on an ubuntu laptop, so I don't suspect that. I have uninstalled MaAmp, and reinstalled from HAM, but still get the same error.

Sodki 2011-10-05 17:03

Re: Ampache client for N900
 
Quote:

Originally Posted by gazza_d (Post 1103305)
How do I reset configuration data for MaAmp?

Try deleting of renaming the folder "/home/user/MyDocs/.MaAMP". Your MaAMP configurations will then be gone.

albebert 2012-03-29 19:23

Re: Ampache client for N900
 
Hello

i've the same problem : "unable to get artist data -- check ampache"

my ampache is a new install on a debian squezze

can you help me ? thanks

Sodki 2012-03-29 20:17

Re: Ampache client for N900
 
Quote:

Originally Posted by albebert (Post 1185720)
Hello

i've the same problem : "unable to get artist data -- check ampache"

my ampache is a new install on a debian squezze

can you help me ? thanks

Have you activated RPC on your Ampache installation? The procedure is described in one of the posts in the first page of this thread. Without it you can't connect.

albebert 2012-03-30 07:07

Re: Ampache client for N900
 
i check this but i think that all is ok

http://bebert.ath.cx/rpc.jpg

and when i check the ampache log connexion is OK

Quote:

2012-03-30 10:57:24 [ampache] (API) -> Attempting Handshake IP:37.8.171.185 User:Yota Version:350001
2012-03-30 10:57:24 [ampache] (API) -> Login Attempt, IP:37.8.171.185 Time:1333090607 User:Yota(3) Auth:********************************************* *******************************************
2012-03-30 10:57:24 [ampache] (API) -> Login Success, passphrase matched
edit : a test with amdroid show me that ampache server is OK because... its work on it :(


edit 2 :

i see in the source that sur app all "self.xml_rpc" fonction

and see : self.xml_rpc = str(self.configuration[0])+"/server/xml.server.php"

so i try the http://bebert.ath.cx/ampache/server/xml.server.php

and i have an xml with :

<?xml version="1.0" encoding="UTF-8" ?>
- <root>
- <error code="401">
- <![CDATA[ Session Expired
]]>
</error>
</root>

si i'm correctly auth ... :(


All times are GMT. The time now is 22:43.

vBulletin® Version 3.8.8