Go to the documentation of this file.
11 #include "libmythbase/mythconfig.h"
14 #include <QScriptEngine>
16 #include <QTextStream>
22 #include "libmythbase/mythversion.h"
48 LOG(VB_UPNP, LOG_INFO,
"MediaRenderer(): Begin");
59 if (!pHttpServer->listen(nPort))
61 LOG(VB_GENERAL, LOG_ERR,
"MediaRenderer: HttpServer Create Error");
63 pHttpServer =
nullptr;
74 pHttpServer->RegisterExtension(pHtmlServer);
87 QScriptEngine* pEngine = pHtmlServer->ScriptEngine();
89 pEngine->globalObject().setProperty(
"Frontend" ,
90 pEngine->scriptValueFromQMetaObject< ScriptableFrontend >() );
103 LOG(VB_UPNP, LOG_INFO,
"MediaRenderer: Creating UPnp Description");
107 device.
m_sDeviceType =
"urn:schemas-upnp-org:device:MediaRenderer:1";
122 LOG(VB_UPNP, LOG_INFO,
"MediaRenderer: Registering MythFEXML Extension.");
127 LOG(VB_UPNP, LOG_INFO,
128 "MediaRenderer::Registering AVTransport Service.");
129 m_pUPnpAVT =
new UPnpAVTransport(
RootDevice() );
133 LOG(VB_UPNP, LOG_INFO,
"MediaRenderer: Registering ConnectionManager Service.");
140 LOG(VB_UPNP, LOG_INFO,
141 "MediaRenderer::Registering RenderingControl Service.");
147 if (qEnvironmentVariableIsSet(
"MYTHTV_UPNPSCANNER"))
149 LOG(VB_UPNP, LOG_INFO,
"MediaRenderer: Registering UPnP Subscription Extension.");
166 LOG(VB_GENERAL, LOG_ERR,
167 "MediaRenderer: Unable to Initialize UPnp Stack");
170 LOG(VB_UPNP, LOG_INFO,
"MediaRenderer(): End");
void PerformSearch(const QString &sST, std::chrono::seconds timeout=2s)
void RegisterExtension(HttpServerExtension *pExtension)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
bool Initialize(int nServicePort, HttpServer *pHttpServer)
QStringList GetSinkProtocolInfos()
Return a QStringList containing the supported Sink Protocols.
QString GetSharePath(void) const
static UPnpDevice * RootDevice()
QString GetValue(const QString &setting)
QString m_sModelDescription
QString m_sManufacturerURL
static void Enable(bool enable, UPNPSubscription *sub=nullptr)
HttpServer * m_pHttpServer
QString m_sPresentationURL
static UPnpDeviceDesc g_UPnpDeviceDesc