Basic state machine for dev player

This commit is contained in:
Brahim Hadriche committed 2024-07-05 21:38:45 -04:00
1 parent 84a860cd6c
commit 27fc34338d
3 files changed
+188 -100

No files matched your search

@@ -15,6 +15,7 @@
<field id="maxRect" type="rect2D" value="[0,0,1280,720]" />
<field id="close" type="boolean" alwaysNotify="true" onChange="OnClose" />
<field id="minimizeState" type="integer" />
<field id="playerUiState" type="integer" />
<function name="PlayWithContent" />
</interface>
<children>
@@ -25,7 +26,7 @@
horizOrigin="right"
translation="[1280,0]" />
<Group id="VideoUI">
<Group id="VideoUi">
<Poster
id="BackgroundPosterSmall"
width="1280"
@@ -36,7 +37,7 @@
width="1280"
height="720"
blendColor="0x323232" />
<Group id="TopUI">
<Group id="TopUi">
<Poster
uri="pkg:/images/black-gradient.png"
opacity="0.8"
@@ -96,7 +97,7 @@
</LayoutGroup>
</Group>
<Group
id="LoadingUI"
id="LoadingUi"
visible="false">
<Poster
id="LoadingSpinnerBackground"
@@ -132,11 +133,11 @@
</Group>
<Timer id="HideVideoUiTimer" duration="3" />
<Animation id="FadeAnimation" duration="0.3" optional="true">
<FloatFieldInterpolator id="FadeOpacityInterpolator" key="[0.0, 0.5, 1.0]" keyValue="[0.0, 0.5, 1.0]" fieldToInterp="VideoUI.opacity" />
<Animation id="UiFadeAnimation" duration="0.3" optional="true">
<FloatFieldInterpolator id="UiFadeOpacityInterpolator" key="[0.0, 0.5, 1.0]" keyValue="[0.0, 0.5, 1.0]" fieldToInterp="VideoUi.opacity" />
</Animation>
<Animation id="minimizeAnimation" duration="0.3" optional="true">
<Animation id="minimizeAnimation" duration="0.2" 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" />