Integrate dialog changes with continue watching changes.

This commit is contained in:
thomabx 2020-03-07 11:58:48 -08:00
parent 65821aee91
commit 4039cc5a16
2 changed files with 16 additions and 12 deletions

View File

@ -102,17 +102,19 @@ sub Main()
else if node.type = "Episode" then
' play episode
' todo: create an episode page to link here
group.lastFocus = group.focusedChild
group.setFocus(false)
group.visible = false
video_id = node.id
group = CreateVideoPlayerGroup(video_id)
m.scene.appendChild(group)
group.setFocus(true)
group.control = "play"
ReportPlayback(group, "start")
m.overhang.visible = false
video = CreateVideoPlayerGroup(video_id)
if video <> invalid then
group.lastFocus = group.focusedChild
group.setFocus(false)
group.visible = false
group = video
m.scene.appendChild(group)
group.setFocus(true)
group.control = "play"
ReportPlayback(group, "start")
m.overhang.visible = false
end if
else if node.type = "Movie" then
' open movie detail page
group.lastFocus = group.focusedChild

View File

@ -73,8 +73,10 @@ end function
function lastFocusedChild(obj as object) as object
child = obj
for i = 0 to obj.getChildCount()
child = child.focusedChild
for i = 0 to obj.getChildCount()
if obj.focusedChild <> invalid then
child = child.focusedChild
end if
end for
return child
end function