picture-in-picture in dev player
This commit is contained in:
1 parent
ee8f7a05dd
commit
967d1840d0
6 files changed
+176
-38
No files matched your search
@@ -7,9 +7,14 @@
|
||||
-->
|
||||
<component name="VideoPlayerDev" extends="Video" includes="AutoBind,Focus,Disposable">
|
||||
<interface>
|
||||
<field id="container" type="node" bind=".." />
|
||||
<field id="videoQueue" type="node" bind="../../VideoQueue" />
|
||||
<field id="invidious" type="node" bind="../../Invidious" />
|
||||
<field id="previousPlayer" type="node" />
|
||||
<field id="minRect" type="rect2D" value="[834,460,426,240]" />
|
||||
<field id="maxRect" type="rect2D" value="[0,0,1280,720]" />
|
||||
<field id="showFullScreenHint" type="boolean" alwaysNotify="true" onChange="OnShowFullScreenHint" />
|
||||
<field id="videoUiVisible" type="boolean" alias="VideoUI.visible" />
|
||||
<field id="close" type="boolean" alwaysNotify="true" onChange="OnClose" />
|
||||
<function name="PlayWithContent" />
|
||||
</interface>
|
||||
@@ -21,46 +26,62 @@
|
||||
horizOrigin="right"
|
||||
translation="[1280,0]" />
|
||||
|
||||
<Group id="TopUI">
|
||||
<!--
|
||||
<Group id="VideoUI">
|
||||
|
||||
<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"
|
||||
iconUri2="pkg:/images/icons/player/pause.png" />
|
||||
<VideoPlayerButton
|
||||
id="NextButton"
|
||||
iconUri="pkg:/images/icons/player/next.png"
|
||||
disabled="true" />
|
||||
</LayoutGroup>
|
||||
<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="left"
|
||||
itemSpacings="[15,15,50]"
|
||||
translation="[562,600]">
|
||||
<VideoPlayerButton
|
||||
id="PreviousButton"
|
||||
iconUri="pkg:/images/icons/player/previous.png"
|
||||
disabled="true" />
|
||||
<VideoPlayerButton
|
||||
id="PlayButton"
|
||||
iconUri="pkg:/images/icons/player/play.png"
|
||||
iconUri2="pkg:/images/icons/player/pause.png" />
|
||||
<VideoPlayerButton
|
||||
id="NextButton"
|
||||
iconUri="pkg:/images/icons/player/next.png"
|
||||
disabled="true" />
|
||||
<VideoPlayerButton
|
||||
id="MinimizeButton"
|
||||
iconUri="pkg:/images/icons/player/minimize.png" />
|
||||
</LayoutGroup>
|
||||
</Group>
|
||||
</Group>
|
||||
|
||||
<Animation id="minimizeAnimation" duration="0.3" optional="true">
|
||||
<FloatFieldInterpolator id="widthInterpolator" key="[0.0, 0.5, 1.0]" fieldToInterp="VideoPlayer.width" />
|
||||
<FloatFieldInterpolator id="heightInterpolator" key="[0.0, 0.5, 1.0]" fieldToInterp="VideoPlayer.height" />
|
||||
<Vector2DFieldInterpolator id="translationInterpolator" key="[0.0, 0.5, 1.0]" fieldToInterp="VideoPlayer.translation" />
|
||||
</Animation>
|
||||
<Rectangle id="fullScreenHint" height="26" color="0x000000" opacity="0.8" visible="false">
|
||||
<Label id="fullScreenHintLabel" text="Press Options (*) for full screen" height="26" color="0xFFFFFF" horizAlign="center" vertAlign="center" font="font:SmallestSystemFont" />
|
||||
<Timer id="fullScreenHintTimer" duration="5" />
|
||||
</Rectangle>
|
||||
</children>
|
||||
</component>
|
||||
Reference in new issue
Block a user