poehoes / ampache-mobile

Automatically exported from code.google.com/p/ampache-mobile
0 stars 0 forks source link

Please add support for ampache localplay! #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure how hard it is, but I'd like to use ampache-mobile just as a 
"remote" so to speak, rather than a full fledged media player. Example behavior 
would be:

1. Launch ampache-mobile/login
2. Select a song/press play
3. Song begins playing via mpd (or whatever localplay plugin you use) on local 
ampache machine

This way, when a phone is on a 802.11b/g network, rather than using 3g, it can 
connect locally to an ampache server and be used as a "remote" to control the 
playlist and etc.

Thanks!

Original issue reported on code.google.com by pmigne...@gmail.com on 8 Jul 2010 at 12:59

GoogleCodeExporter commented 9 years ago
my apologies, this isn't a defect.. not quite sure how to set it to be a 
feature request :/

Original comment by pmigne...@gmail.com on 8 Jul 2010 at 1:00

GoogleCodeExporter commented 9 years ago
I've looked into this in the past.

http://forums.precentral.net/homebrew-apps/200423-ampache-mobile-67.html#post245
9963

Looking thru the Ampache API the only features for localplay are...

next (Advance to Next Localplay Item)
prev (Return to Previous Localplay Item)
stop (Stop Localplay Instance)
play (Play Localplay Instance)

I can find no way to load a playlist or change the volume. So it looks like 
controlling Localplay with Ampache Mobile is not viable with the current API. 

Original comment by bjgeiser@gmail.com on 8 Jul 2010 at 2:32

GoogleCodeExporter commented 9 years ago
Also I just use Ampache Mobile on wifi at home with no transcoding works great. 
 Plug it into an auxiliary input on my stereo.

Original comment by bjgeiser@gmail.com on 8 Jul 2010 at 2:35

GoogleCodeExporter commented 9 years ago
I downloaded the development branch of ampache, and it looks like this 
functionality may actually be in the development branch, judging by what I see 
in mpd.controller.php and in this wiki article: 
http://ampache.org/wiki/dev:localplayapi

Original comment by pmigne...@gmail.com on 8 Jul 2010 at 6:16

GoogleCodeExporter commented 9 years ago
The article you linked is the php API for making new localplay modules for 
ampache.  Such as controlling winamp.

The API I have access to from the outside world is the XML RPC API.  
http://ampache.org/wiki/dev:xmlapi

Original comment by bjgeiser@gmail.com on 9 Jul 2010 at 4:40

GoogleCodeExporter commented 9 years ago

Original comment by bjgeiser@gmail.com on 17 Sep 2010 at 3:31

GoogleCodeExporter commented 9 years ago
As I would also be very interested in this feature, I had a look through the 
Ampache API code to see how it works.

First of all I have the question whether there is a need to load a playlist for 
the localplay - when using the regular webinterface of Ampache, there is also I 
think just a single active localplay controller, and the regular playlists etc 
apply?

Next, looking at the localplay API I think it is not very difficult to add the 
"missing" commands (most of which are recommended/optional for a localplay 
controller).

How difficult would it be to add the basics for this to Ampache Mobile - I'm 
more than willing to help out on the Ampache end (so any required patches can 
be posted upstream) and do testing...

Original comment by her...@ozuzo.net on 23 Nov 2010 at 9:32