renojim wrote:You have to handle that yourself. Don't add the "Resume" button if it's a new video or the video has already been viewed.
-JT
Function refreshShowDetail(screen As Object, showList As Object, showIndex as Integer) As Integer
if validateParam(screen, "roSpringboardScreen", "refreshShowDetail") = false return -1
if validateParam(showList, "roArray", "refreshShowDetail") = false return -1
show = showList[showIndex]
'Uncomment this statement to dump the details for each show
'PrintAA(show)
screen.ClearButtons()
screen.AddButton(1, "resume playing")
screen.AddButton(2, "play from beginning")
screen.SetContent(show)
screen.Show()
End Function
Function refreshShowDetail(screen As Object, showList As Object, showIndex as Integer) As Integer
if validateParam(screen, "roSpringboardScreen", "refreshShowDetail") = false return -1
if validateParam(showList, "roArray", "refreshShowDetail") = false return -1
show = showList[showIndex]
'Uncomment this statement to dump the details for each show
'PrintAA(show)
screen.ClearButtons()
if isPaused(screen)
screen.AddButton(1, "resume playing")
screen.AddButton(2, "play from beginning")
else
screen.AddButton(1, "Play")
end if
screen.SetContent(show)
screen.Show()
End Function
if regread(episode.contentID)<> invalid then
screen.addbutton("Resume Playing")
end if
if regread(episode.contentID)<> invalid then
screen.addbutton("Play from Beginning")
else
screen.addbutton ("Play")
end if
RokuJoel wrote:Hi, here is a link to an updated version of appDetailScreen.brs that should fix the Resume issue:
Download appDetailScreen.brs