Playlist
A playlist is a collection of projects all embedded in single component where the appearance is managed from the Smartzer Editor. This allows a user to change which projects are on screen, and how they render, without needing to change code.
Code
A playlist is embedded using the following example code:
<smrtzr-playlist playlistId="YOUR_PLAYLIST_ID"></smrtzr-playlist>
Optional attributes
You can also add the following optional attributes to the smrtzr-playlist
tag:
region
- The region to be used for all projects in the playlist (used for the region plugin)lang
- The language to be used for all projects in the playlist (used for the language plugin)ratio
- The aspect ratio to be used for all projects in the playlist (used for the aspect ratio plugin)distribution
- Any distribution flag you would like passed through to the player for analytics purposesutm_[parameter_name]
- utm parameters can be added to track various analytics data. Examples of utm parameters areutm_source=google
andutm_medium=social
. If added, every time a user clicks through to your site from a Smartzer player, theutm_*
parameters will be appended to the URL, allowing you to continue to track theutm_*
parameter(s)
All other settings for a playlist are controlled from the Smartzer Editor.