Resume or start a video or timeline

This continues playing from where the video or timeline was paused (or from the start if Stop was called).

A timeline will play either forward or backward, depending on the last play direction.

Video Example

<Grid Rows="3*,1*" >
    <Video ux:Name="video" Url="http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4" StretchMode="Uniform" />
    <Button Text="Play">
        <Clicked>
            <Play Target="video" />
        </Clicked>
    </Button>
</Grid>

Timeline Example

<StackPanel>
    <Rectangle Width="150" Height="150" Margin="60" ux:Name="rect" CornerRadius="10" >
        <Stroke ux:Name="rectStroke" Offset="10" Width="3" Color="#3579e6" />

        <Timeline  ux:Name="timeline" TimeMultiplier="0.4">
            <Rotate>
                <Keyframe DegreesZ="360" Time="1" />
            </Rotate>
            <Change Target="rect.Color">
                <Keyframe Value="#3579e6" Time="1" />
            </Change>
        </Timeline>
    </Rectangle>

    <Slider Width="250" ux:Name="targetProgress" Value="0.5" Minimum="0" Maximum="1" />
    <Button Text="Animate to" Alignment="Bottom">
        <Clicked>
            <PlayTo Target="timeline" Progress="{Property targetProgress.Value}" />
        </Clicked>
    </Button>

    <Button ux:Name="play" Text="Play" Alignment="Bottom">
        <Clicked>
            <Play Target="timeline" />
        </Clicked>
    </Button>

    <Button Text="Pause" Alignment="Bottom">
        <Clicked>
            <Pause Target="timeline" />
        </Clicked>
    </Button>

    <Button Text="Stop" Alignment="Bottom">
        <Clicked>
            <Stop Target="timeline" />
        </Clicked>
    </Button>
</StackPanel>

Location

Namespace
Fuse.Triggers.Actions
Package
Fuse.Triggers 2.9.1
Show Uno properties and methods

Interface of Play

Inherited from PlaybackAction

Inherited from TriggerAction

AtProgress : float ux

A value between 0 and 1 for when the action should be performed. Alternative to Delay.

Delay : float ux

The number of seconds after the start of the trigger that the action should be performed.

TargetNode : Node ux

The node that the action targets. If not specified then the enclsoing Trigger will be used. Several triggers can look for a target starting from this point. Some triggers require a Target to be specified.

Unroot uno

Called when the owner of this object is unrooted. This gives an action to cleanup resources or cancel pending actions.

Inherited from PropertyObject

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces