mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2025-02-24 00:40:43 +00:00
add now palying fix
This commit is contained in:
parent
6bc139deb6
commit
dfe9b84ae6
@ -408,28 +408,34 @@ sub onMetaDataLoaded()
|
||||
if data <> invalid and data.count() > 0
|
||||
|
||||
' Use metadata to load backdrop image
|
||||
if isvalid(data?.json?.ArtistItems?[0]?.id)
|
||||
m.LoadBackdropImageTask.itemId = data.json.ArtistItems[0].id
|
||||
m.LoadBackdropImageTask.observeField("content", "onBackdropImageLoaded")
|
||||
m.LoadBackdropImageTask.control = "RUN"
|
||||
end if
|
||||
|
||||
setPosterImage(data.posterURL)
|
||||
setScreenTitle(data.json)
|
||||
setOnScreenTextValues(data.json)
|
||||
|
||||
m.songDuration = data.json.RunTimeTicks / 10000000.0
|
||||
|
||||
' If we have more and 1 song to play, fade in the next and previous controls
|
||||
if m.buttonsNeedToBeLoaded
|
||||
if m.top.pageContent.count() > 1
|
||||
m.shuffleIndicator.opacity = ".4"
|
||||
m.loopIndicator.opacity = ".4"
|
||||
m.displayButtonsAnimation.control = "start"
|
||||
if isvalid(data.json)
|
||||
if isValid(data.json.ArtistItems)
|
||||
if data.json.ArtistItems.count() > 0
|
||||
if isValid(data.json.ArtistItems[0].id)
|
||||
m.LoadBackdropImageTask.itemId = data.json.ArtistItems[0].id
|
||||
m.LoadBackdropImageTask.observeField("content", "onBackdropImageLoaded")
|
||||
m.LoadBackdropImageTask.control = "RUN"
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
end if
|
||||
|
||||
setPosterImage(data.posterURL)
|
||||
setScreenTitle(data.json)
|
||||
setOnScreenTextValues(data.json)
|
||||
|
||||
m.songDuration = data.json.RunTimeTicks / 10000000.0
|
||||
|
||||
' If we have more and 1 song to play, fade in the next and previous controls
|
||||
if m.buttonsNeedToBeLoaded
|
||||
if m.top.pageContent.count() > 1
|
||||
m.shuffleIndicator.opacity = ".4"
|
||||
m.loopIndicator.opacity = ".4"
|
||||
m.displayButtonsAnimation.control = "start"
|
||||
end if
|
||||
m.buttonsNeedToBeLoaded = false
|
||||
end if
|
||||
m.buttonsNeedToBeLoaded = false
|
||||
end if
|
||||
end if
|
||||
end sub
|
||||
|
||||
' Set poster image on screen
|
||||
@ -558,4 +564,4 @@ sub ReportPlayback(state = "update" as string)
|
||||
playstateTask = m.global.playstateTask
|
||||
playstateTask.setFields({ status: state, params: params })
|
||||
playstateTask.control = "RUN"
|
||||
end sub
|
||||
end sub
|
Loading…
x
Reference in New Issue
Block a user