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:
parent
05dd5edefd
commit
4093c3cb4e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user