|
a/src/ohreceiver.cxx |
|
b/src/ohreceiver.cxx |
|
... |
|
... |
42 |
|
42 |
|
43 |
static const string sTpProduct("urn:av-openhome-org:service:Receiver:1");
|
43 |
static const string sTpProduct("urn:av-openhome-org:service:Receiver:1");
|
44 |
static const string sIdProduct("urn:av-openhome-org:serviceId:Receiver");
|
44 |
static const string sIdProduct("urn:av-openhome-org:serviceId:Receiver");
|
45 |
|
45 |
|
46 |
OHReceiver::OHReceiver(UpMpd *dev, const OHReceiverParams& parms)
|
46 |
OHReceiver::OHReceiver(UpMpd *dev, const OHReceiverParams& parms)
|
47 |
: OHService(sTpProduct, sIdProduct, dev), m_active(false),
|
47 |
: OHService(sTpProduct, sIdProduct, "OHReceiver.xml", dev), m_active(false),
|
48 |
m_httpport(parms.httpport), m_sc2mpdpath(parms.sc2mpdpath), m_pm(parms.pm)
|
48 |
m_httpport(parms.httpport), m_sc2mpdpath(parms.sc2mpdpath), m_pm(parms.pm)
|
49 |
{
|
49 |
{
|
50 |
dev->addActionMapping(this, "Play",
|
50 |
dev->addActionMapping(this, "Play",
|
51 |
bind(&OHReceiver::play, this, _1, _2));
|
51 |
bind(&OHReceiver::play, this, _1, _2));
|
52 |
dev->addActionMapping(this, "Stop",
|
52 |
dev->addActionMapping(this, "Stop",
|