Skip to content

Playlists

The playlist template is an internal Media Manager template that allows you to embed a video player with a list of videos below it. The videos below the currently playing video are based on either a Media Manager Playlist or the latest videos uploaded to your account.

Embedding the Template

The template can be embedded using the smart embed. You have to specify the initial video that is loaded and if you want a playlist id.

<script src="https://{shortname}.getmediamanager.com/js/mm.embed.v1.min.js"></script>
<script type="text/javascript">

    //THE WIDTH AND HEIGHT OF THE EMBED
    mediamanager.width(490);
    mediamanager.height(800);

    //THE PLAYLIST TEMPLATE ID
    mediamanager.template("{playlist_template_id}");

    //YOUR CLIENT SHORTNAME
    mediamanager.client("{shortname}");

    //The VideoID of the initial video that plays when template is embedded.
    mediamanager.video("{inital_video_id}");

    //The playlist ID to be used
    mediamanager.playlist("{playlist_id}");

    //EMBED PLAYLIST
    mediamanager.embed();
</script>

Ordering

By default content is ordered by the created date in descending order. You can change the order of the playlist by using the meta option on the smart embed.

mediamanager.meta.orderBy = "publish_date";

In the case above we can order it by publish date instead of created date. We can then change the order direction.

mediamanager.meta.orderDir = "asc"; //Change order direction to ascending