[mythtv] [mythtv-commits] mythtv commit: r14781 - intrunk/mythtv by nigel
Nigel Pearson
nigel at ind.tansu.com.au
Thu Nov 1 19:16:32 UTC 2007
> BTW I've noticed two other problems with the mythfrontend
> autodiscovery,
> it doesn't appear to be able to discover a mythbackend on the
> localhost
> so when I forget to use the "-d" switch it invariably connects to the
> wrong backend.
I'm working on fixes for this. The new logic will be:
1) Try to load mysql.txt.
If it doesn't exist, load "localhost" defaults
2) Try to contact the database.
It that doesn't work, setup a UPnP autodiscover
and search for two seconds.
If exactly one host is found, use that, otherwise
3) Try to load config.xml, and use UPnP
to contact the backend described within, else
4) Pop up the AutoDiscovery chooser,
and let the user decide what to do.
(but I'm not having much luck with stand alone UPnP
autodiscovery. The MediaRenderer class finds BEs,
but if I try some simple test code:
UPnp *m_UPnP = new UPnp();
QString sBackendLoc = "urn:schemas-mythtv-
org:device:MasterMediaServer:1";
QTime timer;
m_UPnP->SetConfiguration(new XmlConfiguration("config.xml"));
#define PORT 6548
m_UPnP->Initialize(PORT, new HttpServer(PORT));
UPnp::PerformSearch(sBackendLoc);
then nothing is found.)
--
Nigel Pearson, nigel at ind.tansu.com.au|Well, I own the hotel
Telstra Net. Eng., Sydney, Australia | and I also live in it.
Office: 9202 3900 Fax: 9261 3912 |My life is very much
Mobile: 0408 664435 Home: 9792 6998 | like Monopoly
More information about the mythtv-dev
mailing list