B4J Tutorial [BANanoWebix] Lesson 23 WixVideo

Discussion in 'B4J Tutorials' started by Mashiane, Jul 2, 2019.

  1. Mashiane

    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.

    Code:
    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
     
    joulongleu and Alexander Stolte like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice