Skip to content

Commit

Permalink
Add OnResume to websockets notifications (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
quthla authored and jez500 committed Jul 27, 2018
1 parent 375623d commit ef6998f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/apps/state/kodi/notifications.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@
@setPlaying('playState', 'playing')
App.execute "player:kodi:timer", 'start'
@refreshStateNow()

# playback started
when 'Player.OnResume'
@setPlaying('paused', false)
@setPlaying('playState', 'playing')
App.execute "player:kodi:timer", 'start'
@refreshStateNow()

# playback stopped
when 'Player.OnStop'
Expand Down

0 comments on commit ef6998f

Please sign in to comment.