EventServer API
#1
Star 
Hi All!

Needs help on Eventserver API. Is there any documentation on this somewhere? (Can't seem to find it).

I'm currently working on writing a program to control Xbmc via UDP from a Crestron control system. Need detailes on the UDP packet structure.
Have searched the forums and example C# files but haven't found enough details around this.

Any help is very appreciated!

Regards - Jon
Reply
#2
a good place to start is: http://wiki.xbmc.org/index.php?title=EventServer
Reply
#3
jostreng Wrote:Hi All!

Needs help on Eventserver API. Is there any documentation on this somewhere? (Can't seem to find it).

I'm currently working on writing a program to control Xbmc via UDP from a Crestron control system. Need detailes on the UDP packet structure.
Have searched the forums and example C# files but haven't found enough details around this.

Any help is very appreciated!

Regards - Jon

The one Bulkzooi linked to is a great read and if you need specific packet structure (there exists wrappers for all major languages if you want to abide to their licenses) it is in the xbmc/utilsEventPacket.h
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#4
I wrote a basic event client, mainly to learn how the API works. If you'd like a copy of the source message me and I'll pop it on a web server for you to download.

JR
Reply
#5
jhsrennie Wrote:I wrote a basic event client, mainly to learn how the API works. If you'd like a copy of the source message me and I'll pop it on a web server for you to download.

JR

The problem is that in the latest release 9.11 there is no configuration screen for the Remote Event port / range.
Is it still available, maybe with default ports?
If your event client works with 9.11, I can really use your example.

Currently I work with the HttpApi,
It works well but is slow….
Switching to UDP will be much faster.

Thanks
Reply
#6
tzya Wrote:The problem is that in the latest release 9.11 there is no configuration screen for the Remote Event port / range.
Is it still available, maybe with default ports?
If your event client works with 9.11, I can really use your example.

Currently I work with the HttpApi,
It works well but is slow….
Switching to UDP will be much faster.

Thanks

Grab EventClient.zip from http://swarchive.ratsauce.co.uk/

This is a quick and dirty Windows app I knocked together to test the EventClient API, but it has the virtue of being very simple so it's easy to work out what it's doing.

JR
Reply
#7
Bulkzooi Wrote:a good place to start is: http://wiki.xbmc.org/index.php?title=EventServer
Excellent place to start, really, thanks.
Reply
#8
"Grab EventClient.zip from http://swarchive.ratsauce.co.uk/

This is a quick and dirty Windows app I knocked together to test the EventClient API, but it has the virtue of being very simple so it's easy to work out what it's doing."

Thanks very much !!!
It is great, switching to the event server for navigation commands (up, down..)
solved a big problem with exiting the screen saver.
The httpapi navigation commands did not cancel the screen saver (I use the Dim mode).
Reply
#9
If I wanted to write a raw KB.up button press event to a UDP socket on 9777 how would I format it?
Reply
#10
I'm not sure what you're asking, but my test EventClient applet is still available at http://swarchive.ratsauce.co.uk/XBMC/Sim...Client.zip and this include C++ source code.

JR
Reply
#11
topfs2 Wrote:The one Bulkzooi linked to is a great read and if you need specific packet structure (there exists wrappers for all major languages if you want to abide to their licenses) it is in the xbmc/utilsEventPacket.h

And that should already tell you how to format the package.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply

Logout Mark Read Team Forum Stats Members Help
EventServer API0