Files
playlet-piped/src/components/VideoPlayer/VideoPlayer.xml
T

63 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<component name="VideoPlayer" extends="Video">
<script type="text/brightscript" uri="VideoPlayerSponsorBlock.bs" />
<script type="text/brightscript" uri="VideoPlayerCaptions.bs" />
<interface>
<field id="chapter" type="string" alias="chapterLabel.text" />
<field id="videoId" type="string" />
</interface>
<children>
<SponsorBlockTask
functionName="TaskMain"
id="SponsorBlockTask" />
<VideoDetailsTask
functionName="TaskMain"
id="VideoDetailsTask" />
<Label
id="chapterLabel"
width="350"
height="25"
horizAlign="center"
vertAlign="center"
font="font:SmallestSystemFont"
/>
<Timer
id="chapterLabelTimer"
repeat="true"
duration="0.25"
/>
<BusySpinner
id="busySpinner"
spinInterval="1" />
<Animation id="widthAnimation"
duration="0.3"
optional="true">
<FloatFieldInterpolator
id="widthAnimationInterpolator"
key="[0.0, 0.5, 1.0]"
keyValue="[ 1280.0, 853.0, 426.0 ]"
fieldToInterp="VideoPlayer.width" />
</Animation>
<Animation id="heightAnimation"
duration="0.3"
optional="true">
<FloatFieldInterpolator
id="heightAnimationInterpolator"
key="[0.0, 0.5, 1.0]"
keyValue="[ 720.0, 480.0, 240.0 ]"
fieldToInterp="VideoPlayer.height" />
</Animation>
<Animation
id="translationAnimation"
duration="0.3"
optional="true">
<Vector2DFieldInterpolator
id="translationAnimationInterpolator"
key="[0.0, 0.5, 1.0]"
keyValue="[ [0.0, 0.0], [417.0, 230.0], [834.0, 460.0] ]"
fieldToInterp="VideoPlayer.translation" />
</Animation>
</children>
</component>