Video works with File="..." but not with Url="..."

I downloaded the Hikir example from Github: https://github.com/fusetools/hikr/

And in the SplashScreen Page: https://github.com/fusetools/hikr/blob/master/Pages/SplashPage.ux

I only changed from

<Video Layer="Background" File="../Assets/nature.mp4" IsLooping="true" AutoPlay="true" StretchMode="UniformToFill" Opacity="0.5">
        <Blur Radius="4.75" />

to

<Video Layer="Background" Url="http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4&quot; IsLooping="true" AutoPlay="true" StretchMode="UniformToFill" Opacity="0.5">
        <Blur Radius="4.75" />

But the Page is only white and not showing anything in the local Preview and also on Preview on my iPad.

Am I doing something wrong? The link is working if I open it in Safari.

Fuse version 0.23.0 (build 7041)

On the Mointor I get this Error when using Url instead of File and saving the project:

LOG: InternalError: Video error: Failed to load: Failed in Fuse.Controls.VideoImpl.VideoVisual</usr/local/share/uno/Packages/Fuse.Controls.Video/0.32.14/$.uno:947>

I also tried the exact code from Vegard Strand Lende: https://www.fusetools.com/community/forums/howto_discussions/video_exception?page=1

And it is also not working and giving the same error message.

What happens if you download the video and use it with File?

Hey Bent, thank you for answering me :slight_smile: I downloaded the video from http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4 and it is working with File="…" on the local and iPad preview. Also no errors in the monitor.

That’s a little odd indeed. I’ve created an internal issue for us to look into this, thanks for the report :slight_smile:

Hi, I am able to reproduce your problem in local preview, but not on iOS. Can you please do uno clean, fuse kill-all, and then fuse preview -tios and verify that you still get this problem? If so, can you please do fuse --version and paste the output here, along with the model name of your iPad and the version of iOS you’re running?

Hey Anders, thank you for helping me :slight_smile: It is indeed working now! I never did the preview over the command line, instead always over the dashboard. But this shouldn’t make a difference should it?

But I encounter some problems when playing the video. Sometimes the video hangs at some point (often at the same point after 3 seconds) and won’t continue. I then tried the code from Vegard Strand Lende: https://www.fusetools.com/community/forums/howto_discussions/video_exception?page=1 where he added a button to pause and play the video. And when they video hangs at some point I just have to pause and play the video and then it will continiue where it stopped. Could you please fix this?

It happend on the preview app on my iPad Air 1 running 9.3.3 and and on a build on the iPhone 5C same OS version.

Fuse version 0.23.0 (build 7041)

Hey Anders, thank you for helping me :slight_smile: It is indeed working now! I never did the preview over the command line, instead always over the dashboard. But this shouldn’t make a difference should it?

No, that should not make a difference. It must have been a random fluke, network error or something like that. This should have worked on iOS all the time, just not in local preview.

But I encounter some problems when playing the video. Sometimes the video hangs at some point (often at the same point after 3 seconds) and won’t continue. I then tried the code from Vegard Strand Lende: https://www.fusetools.com/community/forums/howto_discussions/video_exception?page=1 where he added a button to pause and play the video. And when they video hangs at some point I just have to pause and play the video and then it will continiue where it stopped. Could you please fix this?

I’ll have to get someone else to look into this. In the mean time: Are you using the exact code that he’s using in that post? And can you check whether this happens in an exported app too, not just in preview?

I’ll have to get someone else to look into this. In the mean time: Are you using the exact code that he’s using in that post? And can you check whether this happens in an exported app too, not just in preview?

Yes I just copy and pasted it. And yes it also occured on an iPhone 5C iOS 9.3.3 with the exported version. But again with pause, play trick it could be continued.