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
MediaPortal 1 Plugins
Skin element watcher
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="Jay_UK" data-source="post: 1035009" data-attributes="member: 98509"><p>Hi all,</p><p></p><p>My setup consists of multiple "disks" (one set for movies, one set for TV series, etc) that spin down after an idle period, which is great for saving energy, but has a downside of taking +5seconds to spin up.</p><p></p><p>What this translates into with various plugins (TVSeries, Moving Pictures, Mediabrowser, etc), is that when my wife presses play, nothing happens for a while. At this point she doesn't know if its loading, hung, not received the remote command, etc - and starts pressing more remote buttons! :O</p><p></p><p>So ideally, what should happen, is that when the plugin screen for that type of media is loaded the disks should spin up in advance, ready for when the content is clicked to play.</p><p></p><p>There are some plugins that detect when a plugin screen/window loads and will do something (eg WOL Power Manager), but the issue I have is that it only works down to Window level (WindowID). There are some plugins that use a single window for access to different types of media (eg the MediaBrowser plugin uses a single window for both TV Series and Movies). In my case I need to detect what disks to spin up (did not want to spin up both movie and TVSeries disks).</p><p></p><p>To solve this issue, this plugin monitors specific use of WindowID/PluginID and window "element/tag name" and its value. So in the case of MediaBrowser plugin, I can detect the use of the Plugin/WindowID and if the plugin is using the "all-movies" windows element/tag/value on the screen - I can spin up the movie disks. I can also monitor the same Plugin/WindowID and if the plugin is using the "show" windows element/tag/value - I can spin up the TVseries disks.</p><p></p><p>Yes, there is a slight overhead in doing this.</p><p></p><p>I know the time delay/spinup is a trivial thing.... but it gave me an excuse to learn "plugin" writing <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>This is a basic process plugin that has a config window to define the things to monitor and the actions to perform.</p><p></p><p>The configurable options are:</p><p></p><p>WindowsID</p><p>Element</p><p>Element Value</p><p>Action</p><p>Action Arguments</p><p></p><p>If you set each the WindowsID, Element and Element Value to *, then this puts the plugin into monitor mode and it will capture (to log file) all the WindowsID/Element/Values as they are used.</p><p></p><p>The Action can either be a program to run (full path and extension), a path to a directory (path can not contain a "."), this will spin up the disks, or WOL</p><p></p><p>The Action Arguments can contain any parameters that need to be passed to the "Action" program, or the MAC address for the WOL action.</p><p></p><p>To install, simply copy the DLL file to the Mediaportal/Plugins/Process directory.</p><p></p><p>Chances are no one will ever need this plugin, but hey...no harm in putting it out there to be used.....</p><p></p><p>Let me know of any issues....</p><p></p><p>J.</p></blockquote><p></p>
[QUOTE="Jay_UK, post: 1035009, member: 98509"] Hi all, My setup consists of multiple "disks" (one set for movies, one set for TV series, etc) that spin down after an idle period, which is great for saving energy, but has a downside of taking +5seconds to spin up. What this translates into with various plugins (TVSeries, Moving Pictures, Mediabrowser, etc), is that when my wife presses play, nothing happens for a while. At this point she doesn't know if its loading, hung, not received the remote command, etc - and starts pressing more remote buttons! :O So ideally, what should happen, is that when the plugin screen for that type of media is loaded the disks should spin up in advance, ready for when the content is clicked to play. There are some plugins that detect when a plugin screen/window loads and will do something (eg WOL Power Manager), but the issue I have is that it only works down to Window level (WindowID). There are some plugins that use a single window for access to different types of media (eg the MediaBrowser plugin uses a single window for both TV Series and Movies). In my case I need to detect what disks to spin up (did not want to spin up both movie and TVSeries disks). To solve this issue, this plugin monitors specific use of WindowID/PluginID and window "element/tag name" and its value. So in the case of MediaBrowser plugin, I can detect the use of the Plugin/WindowID and if the plugin is using the "all-movies" windows element/tag/value on the screen - I can spin up the movie disks. I can also monitor the same Plugin/WindowID and if the plugin is using the "show" windows element/tag/value - I can spin up the TVseries disks. Yes, there is a slight overhead in doing this. I know the time delay/spinup is a trivial thing.... but it gave me an excuse to learn "plugin" writing :) This is a basic process plugin that has a config window to define the things to monitor and the actions to perform. The configurable options are: WindowsID Element Element Value Action Action Arguments If you set each the WindowsID, Element and Element Value to *, then this puts the plugin into monitor mode and it will capture (to log file) all the WindowsID/Element/Values as they are used. The Action can either be a program to run (full path and extension), a path to a directory (path can not contain a "."), this will spin up the disks, or WOL The Action Arguments can contain any parameters that need to be passed to the "Action" program, or the MAC address for the WOL action. To install, simply copy the DLL file to the Mediaportal/Plugins/Process directory. Chances are no one will ever need this plugin, but hey...no harm in putting it out there to be used..... Let me know of any issues.... J. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Skin element watcher
Contact us
RSS
Top
Bottom