Media
Displays media (video, sound, animated gif, etc.).
Ancestry
VisualElement - Media
Properties
MediaSource (string) (accepts variables) Path of media to play
IsMuted (bool) Should the media be played without sound?
Forever (bool) Should we repeat reading the media indefinitely?
Stretch (enum ImageStretch) How the media is presented: “None”: The content retains its original size. “Fill”: The content is resized to fit the destination dimensions. The proportions are not preserved. “Uniform”: Content is resized to fit within the destination dimensions while maintaining its native proportions. “UniformToFill”: the content is resized to fit the destination dimensions while maintaining its native proportions. If the proportions of the destination rectangle differ from those of the source, the source content is cropped to fit within the dimensions of the object.
Volume (decimal) Sound volume level, between 0 and 1.
AutoPlay (enum AutoPlayMode) Media auto-launch mode.
See as well
VisualElement, Playlist