Autoplay video (0.9)

Probably I’m missing something obvious, but how can I play a video automatically when I enter on a page? If it were an iOS native app, I would use the viewDidLoad method to start the video, but there’s no reference from something like that on documentation. Tried the following, all without success :

<Page>
    <WhileActive>
        <Resume Target="video" />
    </WhileActive>
    …
</Page>

and this doesn’t work either

<Video File="Assets/video.mp4" ux:Name="video">
    <WhilePaused>
        <Resume Target="video" />
    </WhilePaused>
</Video>

Thanks.

Hi!

Thanks for your feedback! We will add an autoplay property to <Video />

In the meantime you can try this workaround:

<Video ux:Name="_video">
    <WhileLoading Invert="true">
        <Resume Target="_video" />
    </WhileLoading>
</Video>

Yay, it worked, thanks!