media

Show embed, video or audio media.

The {% media %} tag is similar to tag#image. It accepts the same arguments but where {% image %} is guaranteed to give a still image, {% media %} can also generate embed, video or audio elements.

The {% media %} tag is not implemented in the core of Zotonic. It depends on modules implementing the tag which arguments and media formats are accepted.

An example of a module using {% media %} is module#mod_video_embed which enables the use of embed code from sites as youtube and vimeo. Mod_video_embed will echo the embed code for a {% media %} tag and output a still image for an {% image %} tag.

Edit on GitHub

Referred by

Tags

image

Show a still image using an <img\> element. The image will be automatically resized to the desired size and filters. For video, use the tag#media tag instead.

Modules

mod_oembed

Makes media resources from embeddable URLs through the OEmbed protocol.