The <video> object displays a video. In the game list and in the screensaver, it plays the scraped video of the selected game.
| View | Name | Element |
|---|---|---|
detailed |
md_video |
The video of the selected game |
gameclip |
md_video |
The video of the displayed game |
For a decorative video of your own, pick your own name and add extra="true".
Only one "extra" video can be created per view: further ones are ignored.
| Property | Type | Purpose |
|---|---|---|
pos |
Pair | Object position. See common properties. |
size |
Pair | Object size. |
maxSize |
Pair | Maximum size, keeping the aspect ratio. |
keepratio |
Boolean | Preserves the aspect ratio together with size. |
origin |
Pair | Point of the object that pos refers to. |
rotation |
Float | Rotation angle in degrees, clockwise when positive. |
rotationOrigin |
Pair | Point the rotation happens around. Defaults to 0.5 0.5. |
path |
Path | Path of the video. Not needed on md_video: the video comes from the selected game. |
zIndex |
Float | Drawing order, from lowest to highest. |
disabled |
Boolean | Hides the object entirely. |
animations |
String | Effects allowed on the video, comma-separated, among none, bump, fade and breakingnews. All are allowed by default. |
loops |
Float | Number of successive playbacks of the video. Defaults to 1. |
delay |
Float | Delay in milliseconds before the video starts. Defaults to 2000. |
reflection |
Pair | Reflection under the object. Two values from 0 (transparent) to 1 (opaque): top and bottom of the reflection. |
link |
String | Name of the image element the video hides while playing. |
<video name="md_video" pos="0.3 0.35" origin="0.5 0.5" maxSize="0.35 0.3" delay="1500" loops="0" link="md_image" />
The link property lets an image and a video share the same spot: it names the image element the video must hide while playing. Combined with delay, it produces the classic "the box art shows, then the video takes over" behaviour.
<image name="md_image" pos="0.3 0.35" origin="0.5 0.5" maxSize="0.35 0.3" />
<video name="md_video" pos="0.3 0.35" origin="0.5 0.5" maxSize="0.35 0.3" delay="2000" link="md_image" />