Skip to content

Mux Asset Edit View

Mux assets in Craft closely mirror the data structure found on Mux, ensuring consistency between platforms. Most asset data—such as video properties—is read-only and cannot be modified. However, you can update the Title, add Static Renditions, and manage Audio and Closed Caption Tracks.

Each Mux asset includes a meta property, where the plugin stores the title, the Craft element ID (as the external ID), and the site name (as the creator ID). Additionally, Mux provides a passthrough parameter for storing small amounts of custom data. The plugin uses this to save a compact JSON string containing the assigned volume and folder IDs for each asset.

Slideout Edit View

Mux Element Slideout

Static Renditions

Static renditions generate either a full quality version of your asset as a downloadable mp4 or an audio file.

Mux Element Index

twig
{% set muxAsset = craft.mux.one() %}

{# For usecured assets #}
{% if muxAsset.static_renditions|length %}
        <a href="https://stream.mux.com/{{ muxAsset.playback_ids[0].id }}/{{ muxAsset.static_renditions.files[0].name }}?download={{ muxAsset.title }} download target="_blank">Download Video</a>
{% endif %}

{# For secured playback assets #}
{% if muxAsset.securePlayback %}
    {% set videoToken = muxAsset.getSecurePlaybackJWT(keyID, 'v') %}
    {% if muxAsset.static_renditions|length %}
            <a href="https://stream.mux.com/{{ muxAsset.playback_ids[0].id }}/{{ muxAsset.static_renditions.files[0].name }}?download={{ muxAsset.title }}&token={{ videoToken }}" download target="_blank">Download Video</a>
    {% endif %}
{% endif %}

Tracks

When an asset is created we auto generate and english version of subtitles. In the future we will add a setting to select which languages MUX has available to auto generate. View MUX DocumentationMux Asset Tracks

Closed Captions

For text tracks, the URL is the location of subtitle/captions file. Mux supports SubRip Text (SRT) and Web Video Text Tracks formats for ingesting Subtitles and Closed Captions. Mux Asset Closed Caption Track Addition

Audio Tracks

For audio tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should use standard inputs wherever possible. Mux Asset Audio Track Addition

Asset Data

The data view show analytics regarding that specific MUX asset. This data can beviewed over several slective time spans. We cache the data so as not to hit the MUX api to often and have provided a button to clear that cache when you data is stale. Console Commands are also available to clear the cache.

Mux Asset Data