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
Support
other features (of release or svn versions)
Visual indicator when recording.
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="hurley" data-source="post: 1162918" data-attributes="member: 151395"><p>Hi [USER=154603]@tom_ktom[/USER], that sounds like a good approach if you can somehow get events from MP. Less/no coding required.</p><p></p><p>I went with a quick and dirty console app and I think I used polling to interrogate the tvservice on a timer.</p><p>It must be 5+ years ago now but I looked at the source code for the tray app part of HTPCInfo to work out how to do it, so that would be a good place to start if you are comfortable with C#.</p><p></p><p>It would have had to reference some MP libraries to get at the tvserver information.</p><p>Probably <em>TvControl.dll</em> which has the <em>RemoteControl.Instance</em> interface in it.</p><p>And it used <a href="https://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx" target="_blank">System.IO.Ports.SerialPort</a> to toggle pins DTR, RTS and BreakState which are wired up to the LEDs.</p><p>I do remember having to subscribe to <a href="https://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.powermodechanged%28v=vs.110%29.aspx" target="_blank">SystemEvents.PowerModeChanged</a> and close/reopen the serial ports on hibernate/resume.</p><p>If I can find my source code, I'll pass it on...</p><p></p><p>Having said that, if I was to re-write it from scratch now I'd make it a TV Server plugin and watch the TvServerEvents for recording status. It could then have a configuration page to map tuners to serial ports and pins.</p><p></p><p>Actually that's a great idea for a plugin!</p><p>Good luck with it. <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>...Just remembered I think I stumbled on a plugin somewhere which passes on MP messages to other apps, maybe have a look for that one it could be useful.</p></blockquote><p></p>
[QUOTE="hurley, post: 1162918, member: 151395"] Hi [USER=154603]@tom_ktom[/USER], that sounds like a good approach if you can somehow get events from MP. Less/no coding required. I went with a quick and dirty console app and I think I used polling to interrogate the tvservice on a timer. It must be 5+ years ago now but I looked at the source code for the tray app part of HTPCInfo to work out how to do it, so that would be a good place to start if you are comfortable with C#. It would have had to reference some MP libraries to get at the tvserver information. Probably [I]TvControl.dll[/I] which has the [I]RemoteControl.Instance[/I] interface in it. And it used [URL='https://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx']System.IO.Ports.SerialPort[/URL] to toggle pins DTR, RTS and BreakState which are wired up to the LEDs. I do remember having to subscribe to [URL='https://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.powermodechanged%28v=vs.110%29.aspx']SystemEvents.PowerModeChanged[/URL] and close/reopen the serial ports on hibernate/resume. If I can find my source code, I'll pass it on... Having said that, if I was to re-write it from scratch now I'd make it a TV Server plugin and watch the TvServerEvents for recording status. It could then have a configuration page to map tuners to serial ports and pins. Actually that's a great idea for a plugin! Good luck with it. :) ...Just remembered I think I stumbled on a plugin somewhere which passes on MP messages to other apps, maybe have a look for that one it could be useful. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
other features (of release or svn versions)
Visual indicator when recording.
Contact us
RSS
Top
Bottom