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
Improvement Suggestions
Away Mode capability
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="stalkersvr" data-source="post: 559699" data-attributes="member: 90609"><p>I think, that implement Away Mode is not too hard, as all of you wrote.</p><p></p><p>1) TVServer must enter into Away Mode at the start of every recording and leave after it ends. The followng sample code from Microsoft docs about AwayMode.</p><p>//</p><p>// Television recording is beginning, enable Away Mode and prevent</p><p>// the sleep idle timeout:</p><p>//</p><p>SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED);</p><p></p><p>//</p><p>// Wait until recording is complete…</p><p>//</p><p></p><p>//</p><p>// Clear EXECUTION_STATE flags to disable Away Mode and allow the system into idle to sleep normally:</p><p>//</p><p>SetThreadExecutionState(ES_CONTINUOUS);</p><p></p><p></p><p>After recording ends windows go into sleep, if user press "sleep button" while recording.</p><p></p><p>2) Other part of away mode was mediaportal plugin, that stop playing then receive "Enter Away Mode notification". This can be made with external application, that make some sort of APPCOMMAND_STOP message.</p></blockquote><p></p>
[QUOTE="stalkersvr, post: 559699, member: 90609"] I think, that implement Away Mode is not too hard, as all of you wrote. 1) TVServer must enter into Away Mode at the start of every recording and leave after it ends. The followng sample code from Microsoft docs about AwayMode. // // Television recording is beginning, enable Away Mode and prevent // the sleep idle timeout: // SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED); // // Wait until recording is complete… // // // Clear EXECUTION_STATE flags to disable Away Mode and allow the system into idle to sleep normally: // SetThreadExecutionState(ES_CONTINUOUS); After recording ends windows go into sleep, if user press "sleep button" while recording. 2) Other part of away mode was mediaportal plugin, that stop playing then receive "Enter Away Mode notification". This can be made with external application, that make some sort of APPCOMMAND_STOP message. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Away Mode capability
Contact us
RSS
Top
Bottom