1527
Views
7
Comments
[OutSystems UI] How to use Video widget (mobile app) with File URI?
Question
outsystems-ui
Reactive icon
Forge asset by OutSystems

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

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

Thanks.

2021-05-05 07-35-47
Vera Tiago
Staff

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/.

cheers


MobileApp.oml
2024-03-25 06-19-08
Harlin Setiadarma

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.

2021-05-05 07-35-47
Vera Tiago
Staff

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?

2018-07-11 08-35-50
Rui Mendes

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.

OnInitialize


Hope this helps.

Cheers

2024-03-25 06-19-08
Harlin Setiadarma

Hi Rui,

It's working nicely.

Thanks.

2019-02-12 09-52-37
Danang Suprayogo

Harlin Setiadarma wrote:

Hi Rui,

It's working nicely.

Thanks.


Hi Harlin and Rui, can you give an example of the .oml file?


2019-02-12 09-52-37
Danang Suprayogo


Hi Harlin and Rui, can you give an example of the .oml file?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.