File
String = "" The video to play. Empty, the provider does nothing.
| Value | Source |
|---|---|
starts with https: |
downloaded from that URL on a background thread |
| anything else | a game file path, loaded like any other asset |
A texture provider that plays a video on an
icon element. Set through UiElementIconData.TextureData.
The video is a WebM file with a VP8 or VP9 video stream. The provider decodes it into
a texture of the video's own size and gives that texture to the icon, which draws the
whole frame over its rectangle. The icon's FlipX and FlipY mirror the frame.
Playback
Loop is set.Transparency. A WebM file with an alpha channel plays with it: the alpha stream is decoded next to the colour stream and becomes the alpha of each pixel.
Audio. A Vorbis audio track with one or two channels is decoded and sent to the audio system together with the video. A track with more channels is ignored.
String = "" The video to play. Empty, the provider does nothing.
| Value | Source |
|---|---|
starts with https: |
downloaded from that URL on a background thread |
| anything else | a game file path, loaded like any other asset |
Bool = false Restarts the video when it reaches the end of the stream. The stream is opened again from the start and the clock returns to zero, so the loop is a full restart, not a seek. Unset, the video plays once and holds its last frame.