Video player ui fix

This commit is contained in:
Brahim Hadriche committed 2026-11-20 16:18:27 -05:00
1 parent a049147149
commit 12d9b25762
69 files changed
+430 -19

No files matched your search

@@ -19,13 +19,13 @@
<!-- Dim side panels paint first (behind the tiles): VOD storyboard tiles cover them; on live (empty
tiles) they show through as the filmstrip structure. -->
<Poster id="bifSideL2" translation="[-36, 42]" width="250" height="141" opacity="0.15"
uri="/RokuOS/Artwork/SceneGraph/GenevaTheme/Base/FHD/imageFootprint.9.png" loadDisplayMode="noScale" />
uri="pkg:/images/player/imageFootprint.9.png" loadDisplayMode="noScale" />
<Poster id="bifSideL1" translation="[226, 42]" width="250" height="141" opacity="0.15"
uri="/RokuOS/Artwork/SceneGraph/GenevaTheme/Base/FHD/imageFootprint.9.png" loadDisplayMode="noScale" />
uri="pkg:/images/player/imageFootprint.9.png" loadDisplayMode="noScale" />
<Poster id="bifSideR1" translation="[804, 42]" width="250" height="141" opacity="0.15"
uri="/RokuOS/Artwork/SceneGraph/GenevaTheme/Base/FHD/imageFootprint.9.png" loadDisplayMode="noScale" />
uri="pkg:/images/player/imageFootprint.9.png" loadDisplayMode="noScale" />
<Poster id="bifSideR2" translation="[1066, 42]" width="250" height="141" opacity="0.15"
uri="/RokuOS/Artwork/SceneGraph/GenevaTheme/Base/FHD/imageFootprint.9.png" loadDisplayMode="noScale" />
uri="pkg:/images/player/imageFootprint.9.png" loadDisplayMode="noScale" />
<!-- Storyboard tiles, oversized + clippingRect picks the cell; center has a gradient overlay + frame. -->
<Poster id="bifTileL2" loadDisplayMode="scaleToFill" />
<Poster id="bifTileL1" loadDisplayMode="scaleToFill" />
@@ -33,9 +33,9 @@
<!-- ABOVE the center tile (the stock layering): keeps the white scan glyph legible over a bright
frame. The glyph itself rides the TrickPlayBar handle, a later Chrome sibling. -->
<Poster id="bifCenterGradient" translation="[488, 12]" width="304" height="171"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/PauseGradientThumbnail.9.png" loadDisplayMode="noScale" />
uri="pkg:/images/player/PauseGradientThumbnail.png" loadDisplayMode="noScale" />
<Poster id="bifFrame" translation="[476, 0]" width="328" height="196"
uri="/RokuOS/Artwork/SceneGraph/GenevaTheme/Base/FHD/focus_grid.9.png" loadDisplayMode="noScale" />
uri="pkg:/images/player/focus_grid.$$RES$$.9.png" loadDisplayMode="noScale" />
<Poster id="bifTileR1" loadDisplayMode="scaleToFill" />
<Poster id="bifTileR2" loadDisplayMode="scaleToFill" />
</children>
@@ -23,7 +23,7 @@
<Timer id="hold" duration="1.0" repeat="false" />
<Poster id="poster" visible="false" opacity="0"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/LargePause.png"
uri="pkg:/images/icons/player/LargePause.png"
width="80" height="80" translation="[600, 320]" scaleRotateCenter="[40, 40]"
scale="[0.75, 0.75]" blendColor="0xFFFFFFFF" loadDisplayMode="noScale" />
</children>
@@ -14,9 +14,12 @@ end enum
function Init()
m.loadingGroup = m.top.findNode("loadingTitleArea")
m.spinner = m.top.findNode("spinner")
' blendColor lives on the BusySpinner's poster child, not the spinner node.
' blendColor and size live on the BusySpinner's poster child, not the spinner node. Sized explicitly: the
' bitmap's size in design units varies with the device's UI resolution.
if m.spinner <> invalid and m.spinner.poster <> invalid
m.spinner.poster.blendColor = "#FF1C30FF"
m.spinner.poster.width = 80
m.spinner.poster.height = 80
end if
m.top.ObserveField("mode", FuncName(OnMode))
OnMode()
@@ -21,6 +21,6 @@
</LayoutGroup>
<!-- Shared by both modes; translation centers the 80x80 spinner. -->
<BusySpinner id="spinner" translation="[600, 320]" visible="false" spinInterval="1"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/Spinner_MH.webp" />
uri="pkg:/images/icons/player/Spinner_MH.png" />
</children>
</component>
@@ -6,7 +6,7 @@ import "pkg:/source/utils/Types.bs"
' Every input field is observed in Init and repaints on change, except glyph, focused and the SponsorBlock
' tint, which update only their own piece.
const GLYPH_ASSET_BASE = "/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/"
const GLYPH_ASSET_BASE = "pkg:/images/icons/player/"
function Init()
m.trackFill = m.top.findNode("trackFill")
@@ -131,6 +131,23 @@ namespace Tests
m.assertEqual(handle.translation[1], 22.0)
end function
@it("points every glyph, the handle, the track and the LIVE bullet at a bundled file")
function _()
file = CreateObject("roByteArray")
sg = m.top.findNode("scanGlyph")
for glyph = TransportController.Glyph.SkipBack to TransportController.Glyph.Replay
m.top.glyph = glyph
m.assertTrue(file.ReadFile(sg.uri), sg.uri)
end for
m.top.glyph = TransportController.Glyph.None
track = m.top.findNode("trackBg").uri
for each res in ["480p", "720p", "1080p"]
m.assertTrue(file.ReadFile(track.Replace("$$RES$$", res)), track)
end for
m.assertTrue(file.ReadFile(m.top.findNode("handle").uri))
m.assertTrue(file.ReadFile(m.top.findNode("bullet").uri))
end function
@describe("TrickPlayBar — LIVE projection")
@it("BEHIND the edge: fill/playhead are PROPORTIONAL to cursor within the DVR window + offset label")
@@ -24,11 +24,11 @@
</interface>
<children>
<Poster id="trackBg"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/osd_sliderControl_small.9.png"
uri="pkg:/images/player/osd_sliderControl_small.$$RES$$.9.png"
width="1144" height="12" opacity="0.3" loadDisplayMode="noScale" />
<!-- same asset tinted red, clipped to progress width in code. -->
<Poster id="trackFill"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/osd_sliderControl_small.9.png"
uri="pkg:/images/player/osd_sliderControl_small.$$RES$$.9.png"
width="1144" height="12" blendColor="0xFF1C30FF" clippingRect="[0,0,0,12]" loadDisplayMode="noScale" />
<!-- the cursor: a 12px dot that swells half-again while the bar tier holds focus. PositionPlayhead
moves it; the grow/shrink animations scale it about its center. -->
@@ -44,7 +44,7 @@
</Animation>
<!-- handle: pinned at bar-center. {547,22} rest, {547,-54} active. -->
<Poster id="handle"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/videoProgressBarHandle.9.png"
uri="pkg:/images/player/videoProgressBarHandle.9.png"
translation="[547, 22]" width="50" height="30" loadDisplayMode="noScale">
<Poster id="scanGlyph" visible="false" width="50" height="30" loadDisplayMode="noScale" />
</Poster>
@@ -61,8 +61,8 @@
</Label>
<!-- LIVE bullet: shown only at the edge. -->
<Poster id="bullet" visible="false"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/icon_inline_unselected_bullet.webp"
translation="[1056, 24]" blendColor="0xD53E5AFF" loadDisplayMode="noScale" />
uri="pkg:/images/icons/player/icon_inline_unselected_bullet.png"
translation="[1056, 24]" width="24" height="24" blendColor="0xD53E5AFF" loadDisplayMode="noScale" />
<!-- LIVE badge: shown only at the edge. -->
<Label id="liveLabel" visible="false" translation="[1080, 24]" height="30"
text="LIVE" color="0xFEFEFEFF" horizAlign="left" vertAlign="top">
@@ -77,7 +77,7 @@
<Group id="Chrome" opacity="0" visible="false">
<!-- Full-screen darkening scrim, chrome-gated (rides the fade), not pause-gated. -->
<Poster id="pauseGradient"
uri="/RokuOS/Artwork/SceneGraph/FixedTheme/Base/FHD/PauseGradient.9.png"
uri="pkg:/images/player/PauseGradient.png"
width="1280" height="720" />
<!-- First content sibling: its full-screen black backdrop must paint UNDER the title/bar/buttons