2012-12-19, 12:29
Hi,
Working some days ago on a plug in where adapting the standard xbmc player may be a solution, I've a general question about how python code and xbmc communicate ...
Reading for example this article: http://www.jordanhackworth.com/home-auto...with-xbmc/ I don't understand how xbmc know that this code define some special method to be called later by the player. No special "xbmc" call to some player method, it seems that "magically", xbmc know that this python code have defined a class which "extend" xbmc.Player. And what happen if several scripts make the same ?
Another question, this is a service script which is kept "in memory" by xbmc, but what happen if some other plug in script, a video plugin for example, do the same? As such scripts run only "for a short period" and is run several time, what will happen
Usually a video plug in interact using a method like setResolvedUrl which, as I've understood, implement some callback mecanism, but I've seen some script (source type scripts, like icefilm add on for example) which define some personalized players.
Is there any documentation on this somewhere ?
Working some days ago on a plug in where adapting the standard xbmc player may be a solution, I've a general question about how python code and xbmc communicate ...
Reading for example this article: http://www.jordanhackworth.com/home-auto...with-xbmc/ I don't understand how xbmc know that this code define some special method to be called later by the player. No special "xbmc" call to some player method, it seems that "magically", xbmc know that this python code have defined a class which "extend" xbmc.Player. And what happen if several scripts make the same ?
Another question, this is a service script which is kept "in memory" by xbmc, but what happen if some other plug in script, a video plugin for example, do the same? As such scripts run only "for a short period" and is run several time, what will happen
Usually a video plug in interact using a method like setResolvedUrl which, as I've understood, implement some callback mecanism, but I've seen some script (source type scripts, like icefilm add on for example) which define some personalized players.
Is there any documentation on this somewhere ?