stop showing the spinner a little earlier on audioplayer

This commit is contained in:
Charles Ewert 2023-11-22 09:06:49 -05:00
parent f5d34ea9ec
commit 4e81dda7ad
2 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,6 @@ sub audioStateChanged()
m.top.disableScreenSaver = (currentState = "playing") m.top.disableScreenSaver = (currentState = "playing")
if currentState = "playing" and not m.playReported if currentState = "playing" and not m.playReported
stopLoadingSpinner()
reportedPlaybackState = "start" reportedPlaybackState = "start"
m.playReported = true m.playReported = true
else if currentState = "stopped" or currentState = "finished" else if currentState = "stopped" or currentState = "finished"

View File

@ -447,6 +447,7 @@ sub loadButtons()
end sub end sub
sub onAudioStreamLoaded() sub onAudioStreamLoaded()
stopLoadingSpinner()
data = m.LoadAudioStreamTask.content[0] data = m.LoadAudioStreamTask.content[0]
m.LoadAudioStreamTask.unobserveField("content") m.LoadAudioStreamTask.unobserveField("content")
if data <> invalid and data.count() > 0 if data <> invalid and data.count() > 0