Permalink
Browse files

Partially revert cbe41f2

It broke AirPlay with iOS 7 beta 3, the iPhone requiring a FairPlay authentication mechanism to connect
  • Loading branch information...
jyavenard committed Jul 17, 2013
1 parent 01be22c commit cbb3c331a01a9b25e03a2294ee3927150618b152
Showing with 12 additions and 13 deletions.
  1. +12 −13 mythtv/libs/libmythtv/AirPlay/mythraopdevice.cpp
@@ -169,13 +169,15 @@ bool MythRAOPDevice::RegisterForBonjour(void)
name.append(gCoreContext->GetHostName());
QByteArray type = "_raop._tcp";
QByteArray txt;
txt.append(9); txt.append("txtvers=1"); // TXT record version 1
txt.append(4); txt.append("ch=2"); // audio channels
txt.append(6); txt.append("cn=0,1"); // audio codec: pcm, alac
txt.append(4); txt.append("ek=1"); // without this, iTunes doesn't see us
txt.append(7); txt.append("da=true");
txt.append(6); txt.append("tp=UDP");
txt.append(8); txt.append("sm=false");
txt.append(8); txt.append("sv=false");
txt.append(4); txt.append("ek=1"); //
txt.append(6); txt.append("et=0,1"); // encryption type: no, RSA
txt.append(8); txt.append("md=0,1,2"); // metadata-type: text, artwork, progress
txt.append(6); txt.append("cn=0,1"); // audio codec: pcm, alac
txt.append(4); txt.append("ch=2"); // audio channels
txt.append(5); txt.append("ss=16"); // sample size
txt.append(8); txt.append("sr=44100"); // sample rate
if (gCoreContext->GetNumSetting("AirPlayPasswordEnabled"))
{
txt.append(7); txt.append("pw=true");
@@ -184,14 +186,11 @@ bool MythRAOPDevice::RegisterForBonjour(void)
{
txt.append(8); txt.append("pw=false");
}
txt.append(8); txt.append("sv=false");
txt.append(8); txt.append("sr=44100"); // sample rate
txt.append(5); txt.append("ss=16"); // sample size
txt.append(6); txt.append("tp=UDP");
txt.append(8); txt.append("vn=65537");
txt.append(4); txt.append("vn=3");
txt.append(9); txt.append("txtvers=1"); // TXT record version 1
txt.append(8); txt.append("md=0,1,2"); // metadata-type: text, artwork, progress
txt.append(9); txt.append("vs=130.14");
txt.append(13); txt.append("am=AppleTV2,1");
txt.append(6); txt.append("sf=0x4");
txt.append(7); txt.append("da=true");
LOG(VB_GENERAL, LOG_INFO, QString("Registering service %1.%2 port %3 TXT %4")
.arg(QString(name)).arg(QString(type)).arg(m_setupPort).arg(QString(txt)));

0 comments on commit cbb3c33

Please sign in to comment.