Skip to content

Commit

Permalink
Don't show airplay connection status during playback.
Browse files Browse the repository at this point in the history
it quickly gets annoying, especially as any iTunes running like to connect and disconnect to check on the capabilities of the airplay server
  • Loading branch information
jyavenard committed Jul 20, 2013
1 parent f4b62cc commit d4519a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/AirPlay/mythairplayserver.cpp
Expand Up @@ -566,6 +566,8 @@ void MythAirplayServer::deleteConnection(QTcpSocket *socket)
}
MythNotification n(tr("Client disconnected"), tr("AirPlay"),
tr("from %1").arg(socket->peerAddress().toString()));
// Don't show it during playback
n.SetVisibility(n.GetVisibility() & ~MythNotification::kPlayback);
MythUINotificationCenter::GetInstance()->Queue(n);
}

Expand Down Expand Up @@ -706,6 +708,8 @@ void MythAirplayServer::HandleResponse(APHTTPRequest *req,

MythNotification n(tr("New Connection"), tr("AirPlay"),
tr("from %1").arg(socket->peerAddress().toString()));
// Don't show it during playback
n.SetVisibility(n.GetVisibility() & ~MythNotification::kPlayback);
MythUINotificationCenter::GetInstance()->Queue(n);
}

Expand Down
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/AirPlay/mythraopdevice.cpp
Expand Up @@ -211,6 +211,8 @@ void MythRAOPDevice::newConnection(QTcpSocket *client)

MythNotification n(tr("New Connection"), tr("AirTunes"),
tr("from %1:%2").arg(client->peerAddress().toString()).arg(client->peerPort()));
// Don't show it during playback
n.SetVisibility(n.GetVisibility() & ~MythNotification::kPlayback);
MythUINotificationCenter::GetInstance()->Queue(n);

MythRAOPConnection *obj =
Expand Down Expand Up @@ -238,6 +240,8 @@ void MythRAOPDevice::deleteClient(void)
QList<MythRAOPConnection *>::iterator it = m_clients.begin();

MythNotification n(tr("Client disconnected"), tr("AirTunes"));
// Don't show it during playback
n.SetVisibility(n.GetVisibility() & ~MythNotification::kPlayback);
MythUINotificationCenter::GetInstance()->Queue(n);

while (it != m_clients.end())
Expand Down

0 comments on commit d4519a6

Please sign in to comment.