Add some UI to dev player

This commit is contained in:
Brahim Hadriche committed 2024-06-28 12:29:23 -04:00
1 parent 43b62a0ef8
commit 5c215ca974
19 files changed
+292 -4

No files matched your search

@@ -5,7 +5,7 @@
This would allow us to be flexible with the UI beyond the customizations
of the stock Roku Video component.
-->
<component name="VideoPlayerDev" extends="Video" includes="AutoBind">
<component name="VideoPlayerDev" extends="Video" includes="AutoBind,Focus,Disposable">
<interface>
<field id="videoQueue" type="node" bind="../../VideoQueue" />
<field id="invidious" type="node" bind="../../Invidious" />
@@ -20,5 +20,46 @@
fontUri="font:SmallestBoldSystemFont"
horizOrigin="right"
translation="[1280,0]" />
<Group id="TopUI">
<!--
TODO:P2 once VideoPlayerDev replaces VideoPlayer, the clock can
be removed to reuse the Clock from MainScene
-->
<Clock id="Clock" />
<LayoutGroup
itemSpacings="[5]"
translation="[68,40]">
<Label
id="TitleLabel"
font="font:LargeBoldSystemFont"
width="900"
wrap="true" />
<Label
id="SecondaryTitleLabel"
font="font:SmallestSystemFont"
width="900"
wrap="true" />
</LayoutGroup>
</Group>
<Group>
<LayoutGroup
layoutDirection="horiz"
horizAlignment="center"
itemSpacings="[15]"
translation="[640,600]">
<VideoPlayerButton
id="PreviousButton"
iconUri="pkg:/images/icons/player/previous.png"
disabled="true" />
<VideoPlayerButton
id="PlayButton"
iconUri="pkg:/images/icons/player/play.png" />
<VideoPlayerButton
id="NextButton"
iconUri="pkg:/images/icons/player/next.png"
disabled="true" />
</LayoutGroup>
</Group>
</children>
</component>