Re: Android remote for freevo-1.x Was: Freevo 1.x final feature release schedule

John Molohan <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
On 28/10/2010 20:06, John Molohan wrote:
> On 28/10/2010 19:59, John Molohan wrote:
>> On 28/10/2010 16:36, Stephen Rowles wrote:
>>> On 27/10/2010 21:35, John Molohan wrote:
>>>> I did want to redesign the web remote to make it look a bit more native
>>>> when used on a phone which is the most likely use case. I'll just have
>>>> to try find a few precious free minutes :). I think it's worth it unless
>>>> someone can whip up a native android remote in the mean time?
>>>>
>>>> I think it's probably a good idea to post your announcement to the users
>>>> list too.
>>>>
>>>> John
>>> I can write Anrdoid apps (I've written one or two, nothing I've
>>> published yet), but the talking to Freevo point has always been
>>> something I've wondered about.
>> I've been using xmbc's Android remote for the last week or so and I have
>> to say it's great. I've had the Microsoft IR remotes for the last few
>> years but being able to control your media centre from your phone is
>> much handier and saves on buying a dedicated remote. If you can get one
>> written for freevo it'd be a fantastic addition.
>>> So assuming someone could write android apps... and I'm not saying I
>>> have any time to write one.. but assuming I was going to try and write
>>> one, how would I go about talking to Freevo? Any pointers on talking to
>>> Freevo from Java? (or indeed has someone done it already and I can look
>>> at the code?).
>>>
>>> Cheers,
>>>
>>> Steve.
>> I was wondering the same myself. I'll try have a look over the wiki or
>> the code if I get some time, if I find anything I'll let you know.
>>
>> John
>    From a  quick look at local_conf.py there's the following entries about
> remote control. I have no experience with either but maybe others can
> comment?
>
> #
> # Remote control daemon. The server is in the Freevo main application,
> # and the client is a standalone application in rc_client/
> #
> # ENABLE_NETWORK_REMOTE = 1
> # REMOTE_CONTROL_HOST = '127.0.0.1'
> # REMOTE_CONTROL_PORT = 16310
>
>
> #
> # Remote control daemon. Similar to the one above, but uses TCP instead
> # of UDP. It is possible to send commands with a telnet client.
> #
> # ENABLE_TCP_NETWORK_REMOTE = 0
> # REMOTE_CONTROL_TCP_HOST = '127.0.0.1'
> # REMOTE_CONTROL_TCP_PORT = 16311
>
> John
Testing the latter seems to be the way to go. I have it running on 
localhost but you could change that and control freevo from your wifi 
enabled Android.

[john@localhost ~]$ telnet 127.0.0.1 16311
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
DOWN
UP
SELECT
EXIT
DOWN
DISPLAY

All the standard remote mappings seem to work. Hope this helps.

John

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.