Video PlayTo

I’m not having any luck getting the PlayTo acion to move the position of a video. Does anyone have any insight on this?

My code:

<Button Text="Jump" Opacity="1">
    <Clicked>
        <PlayTo Target="video1" Progress="0.45" />
        <DebugAction Message="You clicked" />
    </Clicked>
</Button>

I’ve tried all kinds of double values for Progess, all to no avail.

Reference: https://www.fusetools.com/learn/fuse#video-actions-useful-actions-that-can-be-used-to-control-video

Thanks

While we work out whether PlayTo is broken or not you could try to just set the position or progress directly. (I’m assuming you’re looking to seek to a specific point in the video?)

<Set video1.Progress="..relative progress value..."/>

or

<Set video1.Position="..position in seconds..."/>

However, you should be aware that the video tag only implements coarse seeking so the granularity here depends on the keyframes in the video (e.g. you’re unlikely to hit the exact point in time / progress you’re requesting)

Setting video1.Progress worked great. I made video1.Progress observable and displayed it in a text field. That helped with figuring what values to use. The Video.Position property didn’t work.

Thanks for the info.