Make the Roku guide full width and give weather its own audio
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
sub init()
|
||||
for each id in ["video", "weather", "banner", "channelTitle", "clock", "nowTitle", "nextTitle", "progressTrack", "progress", "playbackStatus", "panel", "panelTitle", "panelStatus", "menu", "bannerTimer", "clockTimer", "retryTimer", "guideOverlay", "guideStatus", "guideRows", "remoteFocus"]
|
||||
for each id in ["video", "weather", "banner", "channelTitle", "clock", "nowTitle", "nextTitle", "progressTrack", "progress", "playbackStatus", "panel", "panelTitle", "panelStatus", "menu", "bannerTimer", "clockTimer", "retryTimer", "guideOverlay", "guideStatus", "guideRows", "guideTimeHeading", "remoteFocus"]
|
||||
m[id] = m.top.FindNode(id)
|
||||
end for
|
||||
m.channels = []
|
||||
@@ -157,15 +157,14 @@ sub startPlayback()
|
||||
m.weather.visible = channel.type = "weather"
|
||||
m.playbackStatus.visible = false
|
||||
if m.weather.visible
|
||||
m.video.visible = false
|
||||
m.videoChannelId = invalid
|
||||
m.video.control = "stop"
|
||||
startWeather()
|
||||
return
|
||||
end if
|
||||
stopWeather()
|
||||
m.video.visible = true
|
||||
m.video.translation = [0, 0]
|
||||
m.video.width = 1280
|
||||
m.video.height = 720
|
||||
m.video.mute = false
|
||||
if m.videoChannelId = channel.id and m.video.state = "playing" then return
|
||||
setPlaybackStatus("Tuning…")
|
||||
playLinear(channel)
|
||||
@@ -300,10 +299,7 @@ end sub
|
||||
|
||||
sub onVideoState()
|
||||
restoreRemoteFocus()
|
||||
if m.weather.visible
|
||||
if m.video.state = "error" or m.video.state = "finished" then hideWeatherPreview()
|
||||
return
|
||||
end if
|
||||
if m.weather.visible then return
|
||||
if m.channelIndex < 0 then return
|
||||
if m.video.state = "playing"
|
||||
m.playbackStatus.visible = false
|
||||
|
||||
Reference in New Issue
Block a user