home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Pop-up windows by a Process Plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="SilentException" data-source="post: 832188" data-attributes="member: 83924"><p>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.</p><p></p><p>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 <a href="http://code.google.com/p/subcentral/source/browse/trunk/SubCentral/Utils/GUIUtils.cs#187" target="_blank">GUIUtils.cs - subcentral - Download & manage subtitles - plugin for MediaPortal HTPC application - Google Project Hosting</a>, you can also take complete GUIUtils class to work with (Few plugins took this class already <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" />)</p></blockquote><p></p>
[QUOTE="SilentException, post: 832188, member: 83924"] 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 [url=http://code.google.com/p/subcentral/source/browse/trunk/SubCentral/Utils/GUIUtils.cs#187]GUIUtils.cs - subcentral - Download & manage subtitles - plugin for MediaPortal HTPC application - Google Project Hosting[/url], you can also take complete GUIUtils class to work with (Few plugins took this class already ;)) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Pop-up windows by a Process Plugin
Contact us
RSS
Top
Bottom