|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Refreshing UI from a Sage Event.
I am trying to figure out how to cause a UI refresh to be triggered by a particular sage event.
For example, when "RecordingComplete" event is fired, I want to refresh my UI. However, I don't understand how I can push the command to the active UIs from my non STVI - plugin?
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#2
|
|||
|
|||
You could write a sagetv plugin implementation class but that seems overkill and it would be tricky to refresh the correct uicontext.I believe there is hooks in the stv for this you can fire off. Look how the default recordings menu does it.
I also would set a variable when in your menu and leaving your menu so you know if you need to refresh or not and you aren't firing it when they aren't in your menu. |
#3
|
||||
|
||||
From a Java event listener, you can execute API calls on any connected client using the appropriate UI context. How exactly you do that will depend on which (if any) API wrappers you're using. But basically, to force a refresh on all clients, you would enumerate the results of GetConnectedClients() and GetUIContextNames() and call the Refresh() API method on each one.
But as Plucky indicates, there may not be much point in forcing a refresh on clients that are sitting at the Main Menu. It might help if you describe what you're trying to accomplish in more detail so we can target our advice to your specific requirements.
__________________
-- Greg |
#4
|
|||
|
|||
I am looking to refresh my UI when a Recording is started or stopped.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#5
|
||||
|
||||
Sorry, but I'm still unclear on what you mean by "my UI", since you said earlier that your plugin is not a UI mod (STVI) plugin. So what UI do you have that needs refreshing? Or are you saying you want to force a refresh of all connected clients, even if they're sitting at the Main Menu (or running some totally unrelated third-party UI)?
In fact you may find that you don't need to do anything. The screen is going to refresh anyway to show or hide the red REC icon in the menu header. This is accomplished by the global RecordingScheduleChanged hook in the stock STV. If depending on that makes you nervous, then what I'd probably do in any UI mod that displays information based on the recording schedule would be to put a local RecordingScheduleChanged hook on the panel containing such information, and do a targeted RefreshArea on that panel, rather than a blanket Refresh of the whole screen. But all of this can be done completely within Studio. So I'm not sure where your Java-based plugin comes into it (assuming I haven't misunderstood that part of your original post).
__________________
-- Greg |
#6
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Screen not refreshing | pvrpenguin | Sage My Movies | 1 | 10-25-2010 07:48 AM |
Feature request: Add windows system event log disk errors to Sage system messages | mickp | SageTV Software | 0 | 11-18-2009 02:27 AM |
Program Guide: Refreshing? | PeteCress | SageTV EPG Service | 1 | 03-15-2009 07:12 AM |
Media Not Refreshing | Mike | SageTV Software | 2 | 12-29-2006 04:58 PM |
run external program at sage screen saver event | skyw33 | SageTV Software | 1 | 04-01-2005 08:53 AM |