[memb_secure_audio]

Description

Embeds an <audio> 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.

By default the download control is suppressed (controlsList="nodownload") and preload is off.

Shortcode Examples

[memb_secure_audio profile="s3-audio" path="podcast/ep-12.mp3"]

Autoplay, loop, custom width:

[memb_secure_audio profile="s3-audio" path="ambience/loop.mp3" autoplay="1" loop="1" width="400" expiration="300"]

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 audio. Default: 0.

muted

Start muted. Default: 0.

preload

HTML preload attribute value (none, metadata, auto). Default: 'none'.

download

Allow the download control. Default: 0 (nodownload is enforced).

width

Player width in pixels. Default: 0 (attribute omitted).

css_id

HTML ID for the audio element. Default: ''.

Shortcode Attributes

Attribute Value
Conditional No
Nestable No
Accepts formatting No