Is it possible to assign scripts to XBMC related events such as:
-DVD inserted
-New media file detected
-Media file played
-etc
Event based scripts
berdelyi
Junior Member Posts: 7 Joined: Feb 2008 Reputation: 0 |
2008-10-28 04:42
Post: #1
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2008-10-28 04:53
Post: #2
Python should get the OnPlayback* events, so they can be used. You'll need to have your script start on startup and run a background thread waiting for the events.
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. ![]() |
| find quote |
berdelyi
Junior Member Posts: 7 Joined: Feb 2008 Reputation: 0 |
2008-10-28 16:46
Post: #3
Ok, having a process monitoring for certain events is one method (that would impact performance due to constant polling). Having the events hard coded into XBMC might be another.
How does XBMC detect when a DVD is inserted or when there are new media files? |
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help