Video Player Shortcode
[mux_video]
The [mux_video] shortcode allows you to insert a video player anywhere.
[mux_video id="1" autoplay="true" loop="true" muted="true" controls="false" inline="true" preload="metadata"]
Argument | Type | Description |
---|---|---|
id |
integer | The attachment ID of the video to insert. |
autoplay |
boolean | Controls if the video should autoplay. Note that if muted is not set to false, the video will not autoplay in most browsers. |
loop |
boolean | Controls if the video should loop. |
muted |
boolean | Initially mutes the audio, usually used in conjunction with autoplay. |
controls |
boolean | Display playback controls. |
inline |
boolean | Display the video inline on mobile devices. |
preload |
string | The data to preload before playback, valid values are: none, metadata, auto. |