iPhone/iPod Touch App Development

Need Help Developing an CocoaTouch App for Plex
I just recently began making a Plex Remote for my iPhone, since I don't like the other options at the moment...

I need some help determining the ButtonID's that are used within the HTTP API. For some reason, the ButtonID's from XBMC have not carried over well, or were changed.

Is there a list of the ButtonID's I can use with the HTTP API for menu navigation?

Edit: Nevermind... I needed to use the button id's in reference to the xbox controls.

I’m looking forward to your app!

It’s looking good so far! Quick question - are you planning to add a navigation UI like in the iTunes or XBMC remote apps, or will this app just control Plex by simulating button presses?


I want to... I really like the way XBMC Remote works, but I don't like the lack of navigation controls. I also like the idea of being able to do other commands like update the library with one click.

It seems more people are trying to control Plex via different remotes :wink:

You wrote you have the right codes to send to Plex. Currently I am starting to build a prontoscript to enable to control Plex using the popular Philips (and Marantz)remotes. My goal is a fully functional remote including realtime (okay with a limited fps…:wink: display of the screen.

At this moment i can’f find the correct keycodes to control Plex. If I use the ones as defined for xbmc… Plex crashes… and doesn’t perform as expected…

Could you share with me the codes you have found …

As soon as I have a reasonable script available I wil share it with the full community.

Thnx on forehand for sending me the necessary info.



JayTee


Sure thing...
Set Volume Percent: "http://ipaddress:port/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.SetVolume([0-100])"
Set Time Percent: "http://ipaddress:port/xbmcCmds/xbmcHttp?command=SeekPercentage([0-100])"

Play Controls: "http://ipaddress:port/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.PlayerControl({Command})"
Commands can be {Play, Stop, Forward, Rewind, Next, Previous, BigSkipForward, BigSkipBackward, SmallSkipForward, SmallSkipBackward, Random, Repeat, RepeatOne, RepeatAll, RepeatOff, Partymode(music) or Partymode(video) or Partymode(path to .xsp file), and Record}

Key Presses: "http://ipaddress:port/xbmcCmds/xbmcHttp?command=SendKey({ButtonID})"
ButtonID's: {Up:270,Down:271,Left:272,Right:273,Enter/Return:256,Back:257,Info:261,Add/Remove from Queue:259}
There are lots more ButtonID's (see [Key.h](http://xbmc.org/trac/browser/trunk/XBMC/guilib/Key.h))

There are also Built in actions that can be accessed. (See [List of Built-In Functions](http://xbmc.org/wiki/?title=List_of_Built_In_Functions). You can call them with "http://ipaddress:port/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter="

If you need any more help, let me know. Most of my info was taken from [XBMC HTTP API](http://xbmc.org/wiki/?title=Category:HTTP_API)

Wolfie



Excellent Wolfje,

I will surely make progress now! Will keep you up-to-date when i make some progress... Yesterday evening I was stuck getting the screendump into a constructor to display the image on a Pronto .. ;-) .. back to more javascript spitting..
Good luck with your work as I also have a IPhone ...;-)

Grtz
JayTee

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.