[mythtv-firehose] mythtv/master commit: 382fbcc41 by Mark Kendall (mark-kendall)

MythTV noreply at mythtv.org
Fri Jun 10 03:14:45 UTC 2011

      Author:  Mark Kendall <mkendall at mythtv.org>
 Change Date:  2011-06-09T20:14:31-07:00
   Push Date:  2011/06/09 20:14:40 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  382fbcc4120b810e55842706fc13d2c914ee7cd4
   Changeset:  https://github.com/MythTV/mythtv/commit/382fbcc41


MythFrontend: Add a UPnP Media Server scanner.

N.B. This is disabled for the time being while the UI side is added and
an outstanding thread contention issue is resolved.

This will currently successfully detect other UPnP media servers on the
network (while ignoring the master backend), retrieve and parse their
device descriptions and then subscribe to their event URLs for media
update notifications. Subscriptions are renewed before they expire and
there is initial support for browsing the media available from each
device. Tested with PlayOn, gmediaserver, Windows Media Player 11 and

The code is entirely event driven, sits its own low priority thread and
should have extremely low resource demands in normal use. Given recent
issues with 'background' events causing playback issues, however, I've
added a minimum level of general logging that should flag up any
scanning activity and thus correlate it with any pauses etc. If a media
server becomes available during playback there may be a small spike in
cpu utilisation while the device description xml file is parsed - though
in testing this has not caused any issues at all.

Additional code is still needed to iterate through and download all the
media metadata available on each server and for UI integration.





More information about the mythtv-firehose mailing list