[mythtv-firehose] mythtv branch master updated by stuartm. v0.28-pre-2580-g5cbcc41
Git Repo Owner
noreply at mythtv.org
Fri Jan 30 20:48:01 UTC 2015
The branch, master has been updated on the
mythtv repository by gitolite user stuartm.
via 5cbcc41cb156bc6ed69982eaab7220a5b6a6c19e (commit)
via 1c6306e82a6df582893028ff14991534b9335761 (commit)
from c259fd084385777f4bd6687edaa270e9c82d1842 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5cbcc41cb156bc6ed69982eaab7220a5b6a6c19e
Author: Stuart Morgan <smorgan at mythtv.org> at Fri, 30 Jan 2015 20:47:46 +0000
Committer: Stuart Morgan <smorgan at mythtv.org> at Fri, 30 Jan 2015 20:47:46 +0000
URL: http://code.mythtv.org/cgit/mythtv/commit/?id=5cbcc41cb156bc6ed69982eaab7220a5b6a6c19e
Perl Bindings: Fix the protocol version number. Refs #12365
commit 1c6306e82a6df582893028ff14991534b9335761
Author: Stuart Morgan <smorgan at mythtv.org> at Fri, 30 Jan 2015 19:46:49 +0000
Committer: Stuart Morgan <smorgan at mythtv.org> at Fri, 30 Jan 2015 20:46:15 +0000
URL: http://code.mythtv.org/cgit/mythtv/commit/?id=1c6306e82a6df582893028ff14991534b9335761
WebSocket: Split the MythEvent functionality into an extension
Adds support for server-side filtering of events, so clients only
receive those that they are interested in. These are specified by the
client in a text frame with the format:
WS_EVENT_SET_FILTER {EVENT_NAME} {EVENT_NAME2} {EVENT_NAME3}
A special value of "ALL" in place of the event names will enabled
sending of all events to the client. It's recommended that the client
is more specific about their needs as a backend may in theory send any
number of events per second, most of which the client will have no
interest in. For a mobile client this may even result in unexpected
high data usage!
It also changes the behaviour so that events are not sent by default
and they can be enabled or disabled on demand without affecting
filters or closing the socket.
To enable sending of events:
WS_EVENT_ENABLE
To disable:
WS_EVENT_DISABLE
-----------------------------------------------------------------------
Summary of changes:
mythtv/bindings/perl/MythTV.pm | 2 +-
mythtv/html/debug/websocket.qsp | 2 +
mythtv/html/js/websocket_events.js | 7 +-
mythtv/libs/libmythupnp/libmythupnp.pro | 4 +
mythtv/libs/libmythupnp/websocket.cpp | 67 +++++++++--
mythtv/libs/libmythupnp/websocket.h | 126 ++++++++++++++------
.../websocket_extensions/websocket_mythevent.cpp | 78 ++++++++++++
.../websocket_extensions/websocket_mythevent.h | 30 +++++
8 files changed, 264 insertions(+), 52 deletions(-)
create mode 100644 mythtv/libs/libmythupnp/websocket_extensions/websocket_mythevent.cpp
create mode 100644 mythtv/libs/libmythupnp/websocket_extensions/websocket_mythevent.h
--
More information about the mythtv-firehose
mailing list