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
Catching events when TV recorder/viewing starts and ends?
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="ziphnor" data-source="post: 45248" data-attributes="member: 14215"><p>Hi,</p><p></p><p>Im trying to create a plugin to manage the power scheme based on the state of mediaportal, ie switch power schemes when MP is recording or showing TV and when it stops.</p><p></p><p>Im having trouble catching the messages i were expecting. I have registrered as follows:</p><p>[code]</p><p>GUIWindowManager.Receivers += new SendMessageHandler(ExtraOnMessage);</p><p>GUIGraphicsContext.Receivers += new SendMessageHandler(ExtraOnMessage);</p><p>[/code]</p><p></p><p>When TV viewing starts and stops i see </p><p>GUI_MSG_PLAYBACK_STOPPED</p><p>GUI_MSG_PLAYBACK_STARTED </p><p>messages, but when just using the recorder im not seeing any of those messages, i was hoping to see one or more of the following:</p><p></p><p>GUI_MSG_RECORDER_ALLOC_CARD </p><p>GUI_MSG_RECORDER_FREE_CARD</p><p>GUI_MSG_RECORDER_STOP_TIMESHIFT</p><p>GUI_MSG_RECORDER_STOP_TV </p><p>GUI_MSG_RECORDER_STOP_RADIO</p><p></p><p>Im a bit confused as to how events and states are handled in MediaPortal and would appreciate any hints anyone can give. I just want to get notified when a TV card starts being used, and when it stops being used.</p></blockquote><p></p>
[QUOTE="ziphnor, post: 45248, member: 14215"] Hi, Im trying to create a plugin to manage the power scheme based on the state of mediaportal, ie switch power schemes when MP is recording or showing TV and when it stops. Im having trouble catching the messages i were expecting. I have registrered as follows: [code] GUIWindowManager.Receivers += new SendMessageHandler(ExtraOnMessage); GUIGraphicsContext.Receivers += new SendMessageHandler(ExtraOnMessage); [/code] When TV viewing starts and stops i see GUI_MSG_PLAYBACK_STOPPED GUI_MSG_PLAYBACK_STARTED messages, but when just using the recorder im not seeing any of those messages, i was hoping to see one or more of the following: GUI_MSG_RECORDER_ALLOC_CARD GUI_MSG_RECORDER_FREE_CARD GUI_MSG_RECORDER_STOP_TIMESHIFT GUI_MSG_RECORDER_STOP_TV GUI_MSG_RECORDER_STOP_RADIO Im a bit confused as to how events and states are handled in MediaPortal and would appreciate any hints anyone can give. I just want to get notified when a TV card starts being used, and when it stops being used. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Catching events when TV recorder/viewing starts and ends?
Contact us
RSS
Top
Bottom