B4J Tutorial [BANanoWebix] Lesson 23 WixVideo

Mashiane

Expert
Licensed User
Ola

The video component allows one just to do that, show videos. Whilst one is able to set the height & width of their videos, this does not have much properties.

Lesson23.png


One is able to set autoplay and controls for visibility.

Here we add a row to the page and then add the video to that page.

B4X:
Sub Init
    pg.Initialize("").SetHeader("Lesson 23: WixVideo")
    '
    Dim R1 As WixRow
    R1.Initialize("R1")
    '
    Dim vid As WixVideo
    vid.Initialize("vid").SetWidth(640).SetBorderLess(False).SetStyle("margin", "10px")
    vid.SetSRC("./assets/movie.mp4").SetSRC("./assets/movie.ogv").SetAutoPlay(True)
    
    R1.AddRows(vid.Item)
    '
    pg.AddRow(R1)
    
    pg.ui
End Sub
 
Top