[mythtv-users] Automatically pausing playback
Scott
scott at frak.ms
Fri Sep 10 13:38:12 UTC 2010
On Sep 10, 2010, at 9:32 AM, Chris Gentle wrote:
> I have a little home-grown application that I use to pop up caller id information on my mythtv machine whenever a phone call comes into my asterisk box. I'm basically broadcasting a UDP packet with the caller id information from the asterisk machine and have a listener running on my mythtv box. When it receives the packet it pops up a dialog showing who is calling. Pretty simple. However, I would like to automatically pause the mythtv playback when the caller id event arrives. Is there a simple way to do that? I thought maybe I could fake an event with lirc and having it send a Pause. However, after digging through the man pages of the lirc stuff it wasn't as obvious as I thought. Any ideas on how to do this? Or is there something easier that I've completely missed?
Use the telnet interface of MythTV to pause playback when your script receives a caller id packet.
http://www.mythtv.org/wiki/Telnet_socket
You'll have to script something in Python telnetlib or Perl Net::Telnet to handle the communication, but that shouldn't be to hard?
--
Regards,
Scott Russell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100910/ee96fb65/attachment.htm>
More information about the mythtv-users
mailing list