Skip to Content
0

How to play video from UI5 app

Dec 14, 2016 at 01:23 PM

451

avatar image

Hello Team,

I need one help,
I want to play video when i click on Tile.
the video should be uploaded in sap application server (tcode AL11). This video should not be downloaded. It should be play in the same tab.

When it directly use the URL in the browser it is working. i have attached the screenshot.


but it is not playing from the UI5 application.

Can you please help me on that ?

video.jpg (39.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sergio Guerrero Dec 14, 2016 at 03:34 PM
0

normally on an HTML5 application, you can use a video tag like this - the source tag depends on your file extension (MIME type).

<video width="400" controls>

<source src="yourVideoFile.mp4" type="video/mp4">

Your browser does not support HTML5 video.

</video>

if the video doesn't play/load, you will need to check that the server it is hosted on supports the MIME type.

if you want to see if it works on a sapui5 view... you may want to embed that piece of html into your view.

hope it works

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Sergio,

Thanks for your quick reply.

I have implemented this html tag for video.

It is working fine for a video file which is available in website like: "http://videos.mozilla.org/serv/webmademovies/popcornplug.mp4".

but what I have done is, I have uploaded the video file in sap application server i. e AL11.

\\xxxxxxx\Presentation_Videos\SERVICE_CATALOG_PPT_286_288.mp4'.

It is opening properly when we open it through the browser directly.

But when we open it through application via clicking on the tile it is not opening.

Please help me on this.

Waiting for your reply.

Regards,

Deborshi

0
Vijay Kumar Kalluri Dec 15, 2016 at 02:28 PM
0

Below example with HTML and Panel might help

http://jsbin.com/afif/202/edit

Try this

Share
10 |10000 characters needed characters left characters exceeded