[memb_secure_video]
Description
Embeds a <video> element whose <source> is a provider-signed
direct URL generated at render time. Because the signature lives in
the page HTML, use a short expiration when the content may be
cached.
Supports a poster image and explicit width/height.
Shortcode Examples
[memb_secure_video profile="s3-videos" path="courses/lesson-1.mp4"]
With poster and dimensions:
[memb_secure_video profile="s3-videos" path="courses/lesson-1.mp4" poster="/img/thumb.jpg" width="1280" height="720" expiration="600"]
Shortcode Parameters
profile
Secure Files profile slug. Required.
path
File path within the profile's bucket/zone. Required.
expiration
Signed URL lifetime in seconds. Falls back to the profile's
configured expiration. Default: ''.
controls
Show player controls. Default: 1.
autoplay
Start playing automatically. Default: 0.
loop
Loop the video. Default: 0.
muted
Start muted. Default: 0.
preload
HTML preload attribute value (none, metadata, auto).
Default: 'none'.
poster
Poster image URL shown before playback. Default: ''.
width
Player width in pixels. Default: 0 (attribute omitted).
height
Player height in pixels. Default: 0 (attribute omitted).
css_id
HTML ID for the video element. Default: ''.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | No |
| Nestable | No |
| Accepts formatting | No |