[OutSystems UI Mobile] How to use Video widget (mobile app) with File URI?

Forge Component
Published on 8 Jan (13 days ago) by OutSystems R&D
36 votes
Published on 8 Jan (13 days ago) by OutSystems R&D

Is it possible to use Video widget (mobile app) with File URI?

I've tried it but it won't play.


Hi Harlin,

The URL must be of a direct video file, not a website like Vimeo or YouTube, those servers provide their own embed code already.

Check the OML example attached to see how it works (you just need to click on the video to start playing).

You can also take a look at this thread - https://www.outsystems.com/forums/discussion/30806/silk-ui-control-video/.


Hi Vera,

What I meant is for playing video directly from internal storage using File URI.

Eg: file:///storage/emulated/0/DCIM/Camera/Video1.mp4

It's funny if I had to upload to server, then using Download node in Preparation to serve a local video that was already in user's device.

It looks a bit tricky indeed :)
I used to do something similar to be able to preview PDFs in a page.

Did you check if it works?

Hi Harlin.

If you're trying to use the video widget directly in your app, you can use the GetFileUrlFromUri client action from the FilePlugin plugin.

You can also try the FileViewerPlugin plugin if you want the device's native capabilities to play the videos.

Make sure to validate if the plugin is available and act accordingly.


Hope this helps.


Hi Rui,

It's working nicely.