VL Web - how to use video control(PRIM_VDEO)

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Rieko Saitoh
Posts: 39
Joined: Sat Apr 30, 2016 11:46 am

VL Web - how to use video control(PRIM_VDEO)

Post by Rieko Saitoh » Thu Jun 16, 2016 12:41 pm

Hi,

In the VL Web, I would like to use video control(PRIM_VDEO).
However, I do not know how to use this. (For example, specifying the file name. etc.)
Does anyone have the sample code of video control(PRIM_VDEO)?

Thank you.

Best regards,
Rieko Saitoh
LANSA japan

User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: VL Web - how to use video control(PRIM_VDEO)

Post by Stewart Marshall » Thu Jun 16, 2016 3:13 pm

Hi Rieko

You need only set the Filename property.

All paths are relative to the location of the Partition webfolder - [Installation Root]\x_win95\x_lansa \x_ppp\web\vl

Code: Select all

Begin_Com Role(*EXTENDS #PRIM_WEB) Height(513) Width(969) Theme(#SYS_THEME<2015Blue>)

Define_Com Class(#PRIM_VDEO) Name(#Video1) Displayposition(1) Left(96) Parent(#COM_OWNER) Tabposition(1) Top(37) Height(404) Width(801)

Evtroutine Handling(#COM_OWNER.Click)
#Video1.FileName := "video.mp4"
Endroutine

End_Com

Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

Rieko Saitoh
Posts: 39
Joined: Sat Apr 30, 2016 11:46 am

Re: VL Web - how to use video control(PRIM_VDEO)

Post by Rieko Saitoh » Fri Jun 17, 2016 12:45 pm

Hi Stewart,

Thank you very much for your sample code.
I tried it, but can't play the movie file.
The movie file is put in the Partition webfolder.
Is other setting for the file necessary?

Thank you.

Best regards,
Rieko Saitoh
LANSA japan

User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: VL Web - how to use video control(PRIM_VDEO)

Post by Stewart Marshall » Fri Jun 17, 2016 2:23 pm

Hi Rieko

The VL video control is little more than a very simple wrapper around the HTML <Video> element.

It is therefore limited to the file formats and features as specified

http://www.w3schools.com/tags/tag_video.asp

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au

Rieko Saitoh
Posts: 39
Joined: Sat Apr 30, 2016 11:46 am

Re: VL Web - how to use video control(PRIM_VDEO)

Post by Rieko Saitoh » Fri Jun 17, 2016 3:28 pm

Hi Stewart,

I could play the movie file!
Your advice is quite correct.
The cause is the size of the file. I have specified the very large size file (1904627KB!!).
Therefore it has taken long time for playing the movie.
I'm sorry to trouble you. I appreciate your help!!

Thank you.

Best regards,
Rieko Saitoh
LANSA japan

Post Reply