fix resuming from paused in kodi 18

This commit is contained in:
lsellens 2019-08-16 15:32:33 -05:00
parent 8aff3cb9b0
commit 5291d3b94d
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ void XBMCVideoChecker::receiveReply()
// std::cout << "KODICHECK INFO: Kodi Message: " << reply.toStdString() << std::endl;
if ( (_xbmcVersion < 18 && reply.contains("\"method\":\"Player.OnPlay\"")) ||
(_xbmcVersion >= 18 && reply.contains("\"method\":\"Player.OnAVStart\"")) )
(_xbmcVersion >= 18 && reply.contains("\"method\":\"Player.OnAVStart\"") ||
reply.contains("\"method\":\"Player.OnResume\"")) )
{
// send a request for the current player state
_socket.write(_activePlayerRequest.toUtf8());