2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

70_KODI: added handling of OnResume for Leia

git-svn-id: https://svn.fhem.de/fhem/trunk@16998 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
vbs 2018-07-17 20:18:15 +00:00
parent 05dd5edefd
commit 4093c3cb4e

View File

@ -674,7 +674,7 @@ sub KODI_ProcessNotification($$)
elsif($obj->{method} eq "Player.OnPropertyChanged") {
KODI_PlayerUpdate($hash,$obj->{params}->{data}->{player}->{playerid});
}
elsif($obj->{method} =~ /(Player\.OnSeek|Player\.OnSpeedChanged|Player\.OnPropertyChanged)/) {
elsif($obj->{method} =~ /Player\.(OnSeek|OnSpeedChanged|OnPropertyChanged)/) {
my $base = $obj->{params}->{data}->{player};
readingsBeginUpdate($hash);
foreach my $key (keys %$base) {
@ -699,6 +699,9 @@ sub KODI_ProcessNotification($$)
KODI_PlayerOnPlay($hash, $obj);
KODI_Update($hash);
}
elsif($obj->{method} eq "Player.OnResume") {
readingsSingleUpdate($hash,"playStatus",'playing',1);
}
elsif($obj->{method} =~ /(Playlist|AudioLibrary|VideoLibrary|System).On(.*)/) {
readingsSingleUpdate($hash,lc($1),lc($2),1);