Reply to thread

You can check active window ID. There is also event in GUIWindowManager which fires when active window changes. For TV, I'm sure there is a method or property in TVPlugin which can tell you whether TV/radio is playing. Maybe even in g_player class.


To show notifications you can use any of available dialogs but I think GUIDialogNotify is the best for the purpose. Since you'll be doing this from background thread you need to invoke showing of dialog, something like GUIUtils.cs - subcentral - Download & manage subtitles - plugin for MediaPortal HTPC application - Google Project Hosting, you can also take complete GUIUtils class to work with (Few plugins took this class already ;))


Top Bottom