fix player notifications

This commit is contained in:
Simon Stürz 2015-06-25 20:27:34 +02:00 committed by Michael Zanetti
parent fafb54834f
commit 95950f6327

View File

@ -54,14 +54,13 @@ void JsonHandler::processNotification(const QString &method, const QVariantMap &
if (method == "Application.OnVolumeChanged") {
QVariantMap data = params.value("data").toMap();
emit volumeChanged(data.value("volume").toInt(), data.value("muted").toBool());
} else if (method == "Player.onPlayerPlay") {
} else if (method == "Player.OnPlay") {
emit onPlayerPlay();
} else if (method == "Player.onPlayerPause") {
emit onPlayerPause();
} else if (method == "Player.onPlayerStop") {
} else if (method == "Player.OnPause") {
emit onPlayerPause();
} else if (method == "Player.OnStop") {
emit onPlayerStop();
}
}
void JsonHandler::processActionResponse(const KodiReply &reply, const QVariantMap &response)