ABMaterial can use two types of Video containers: HTML5 videos and Youtube videos. They both have their own Initialize method.

Youtube videos

For Youtube videos you have to specify if it has controls, a frameborder, if it allows to go full screen and the initial volume.

// add Youtube video
Dim video1 As ABMVideo
video1.InitializeIframe(page, "video1", "//www.youtube.com/embed/Q8TXgCzxEnw", "http://localhost:51042", True, False, True, 100)
page.Cell(2,1).AddComponent(video1)

If you disable the youtube controls, you have to write your own play, pause, stop etc controls.

HTML videos

For HTML5 videos you have to specify if it has controls and what video type is used.

// add HTML5 video
Dim video2 As ABMVideo
video2.InitializeHTML5(page, "video2", "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4", false, "video/mp4")
page.Cell(9,1).AddComponent(video2)
Video Size

By default the videos are responsive and they will be sized automatically. You can overrule this by specifying a fixed size.

// add HTML5 video
Dim video3 As ABMVideo
video3.InitializeHTML5(page, "video3", "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4", True, "video/mp4")
video3.SetFixedSize(320, 200)
page.Cell(13,1).AddComponent(video3)