2010-05-19, 12:39
The most accurate documentation for the api is returned by the introspect method (development page in the demo web interface). But it doesn't always tells everything about the parameters expected.
You could have a look at the code of the JS library I'm writing. It's not finished but it does work pretty wel for most functionality.
http://code.google.com/p/xbmcweb/source/...y/xbmc/lib
The minified and packed versions are not up to date. So use the files in the lib directory in the link above.
The order in which the JS files should be included you can get from...
http://code.google.com/p/xbmcweb/source/...layer.html
The follwong file shows what configuration parameters are expected and initialises the library (not everything in the file is library related)....
http://code.google.com/p/xbmcweb/source/.../config.js
Examples of the ways you could use the api are mostly in this directory...
http://code.google.com/p/xbmcweb/source/...iew/player
...and in the js application framework...
http://code.google.com/p/xbmcweb/source/...ion/player
Again...everything is far from finished. So I wouldn't advise to use the library just yet. Starting from next week I'll have a lot more free time. Hopefully I'll have a more or less feature complete and bug free minified version available for download within a few weeks. If you have any questions or questions, please let me know.
You could have a look at the code of the JS library I'm writing. It's not finished but it does work pretty wel for most functionality.
http://code.google.com/p/xbmcweb/source/...y/xbmc/lib
The minified and packed versions are not up to date. So use the files in the lib directory in the link above.
The order in which the JS files should be included you can get from...
http://code.google.com/p/xbmcweb/source/...layer.html
The follwong file shows what configuration parameters are expected and initialises the library (not everything in the file is library related)....
http://code.google.com/p/xbmcweb/source/.../config.js
Examples of the ways you could use the api are mostly in this directory...
http://code.google.com/p/xbmcweb/source/...iew/player
...and in the js application framework...
http://code.google.com/p/xbmcweb/source/...ion/player
Again...everything is far from finished. So I wouldn't advise to use the library just yet. Starting from next week I'll have a lot more free time. Hopefully I'll have a more or less feature complete and bug free minified version available for download within a few weeks. If you have any questions or questions, please let me know.