mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-12-04 12:44:11 +00:00
parent
386400d577
commit
63e1d97536
@ -1,6 +1,5 @@
|
||||
sub init()
|
||||
m.playReported = false
|
||||
m.top.disableScreenSaver = true
|
||||
m.top.observeField("state", "audioStateChanged")
|
||||
end sub
|
||||
|
||||
@ -10,6 +9,8 @@ sub audioStateChanged()
|
||||
|
||||
reportedPlaybackState = "update"
|
||||
|
||||
m.top.disableScreenSaver = (currentState = "playing")
|
||||
|
||||
if currentState = "playing" and not m.playReported
|
||||
reportedPlaybackState = "start"
|
||||
m.playReported = true
|
||||
|
Loading…
Reference in New Issue
Block a user