[mythtv-commits] mythtv commit: r8688 - in trunk/mythtv by cpinkham

mythtv@cvs.mythtv.org mythtv at cvs.mythtv.org
Sun Jan 22 06:22:59 UTC 2006


      Author: cpinkham
        Date: 2006-01-22 06:22:57 +0000 (Sun, 22 Jan 2006)
New Revision: 8688
   Changeset: http://cvs.mythtv.org/trac/changeset/8688

Added:

   trunk/mythtv/programs/mythfrontend/networkcontrol.cpp
   trunk/mythtv/programs/mythfrontend/networkcontrol.h

Modified:

   trunk/mythtv/libs/libmythtv/tv_play.cpp
   trunk/mythtv/libs/libmythtv/tv_play.h
   trunk/mythtv/programs/mythfrontend/globalsettings.cpp
   trunk/mythtv/programs/mythfrontend/main.cpp
   trunk/mythtv/programs/mythfrontend/mythfrontend.pro
   trunk/mythtv/programs/mythfrontend/playbackbox.cpp
   trunk/mythtv/programs/mythfrontend/playbackbox.h

Log:

This commit adds the ability to control mythfrontend via a socket interface.
Commands are sent and replies are received in text mode, there is no fancy
xml interface or anything, it is meant to be able to be used via something as
simple as telnet.

This feature is disabled by default, you need to turn it on via the mythfrontend
setup screen under the Default settings page and then restart mythfrontend.  The
default port is 6545, so after restarting mythfrontend, you can test by
telnetting to localhost on port 6545 ("telnet localhost 6545").  For a list of
supported commands, type "help".  For help on a specific command, type
"help COMMAND" (where COMMAND is the name of the command like "help jump").

Notes:

The integer 1x, etc. play speeds come from the FFRewSpeed settings in the
database, otherwise they use the defaults of (3, 5, 10, 20, 30, 60, 120,
180) defined in tv_play.cpp.

The pre-defined fraction speeds (1/2, 1/4, etc.) are listed in the
"help play" help text.

There can be only one socket connection to mythfrontend at a time, if a
new connection is opened, the old one will be automatically closed.

Closes #1092.  If there are any bugs found, they can be submitted under
another ticket.






More information about the mythtv-commits mailing list