Skip to reading
3D Models & Video in GUIs

14. Add a Video element to a GUI

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

1. Create an Embedded Video GUI with ID video_lab.

2. Add a Video element with ID briefing_video.

3. For the example, use X 32, Y 94, Width 736 and Height 421.

4. In Images, choose the imported video as Media Asset.

5. In Type Settings, set each content margin to 8. Leave Autoplay off while you build the playback Buttons.

Figure 15. The Video element’s Media Asset selector uses video assets. Background Image is a separate image layer.

The outer rectangle is 736 by 421. The four 8-pixel margins leave a 720 by 405 content rectangle, which matches a 16:9 clip. A correctly shaped content area is important for this version’s embedded player.

Add separate Buttons for Play / Restart, Pause, Resume and Stop. The next chapters explain their scripts; these controls are not generated automatically by the element.

A valid clip with Autoplay off can remain blank until it is played. Poster Image is not a general pre-play cover in this build.

Page 22 of 45Permalink
Go to page