

// HTML IDs
var encodedId = $htmlEncode(ctx.ClientControl.get_nextUniqueId() + "_video_");
var containerId = encodedId + "container";
var dataContainerId = encodedId + "dataContainer";
var videoPlayerId = containerId + "_VideoPlayerId";

// Managed properties retrieval
var title = $getItemValue(ctx, "Title");
var mediaDuration = $getItemValue(ctx, "MediaDuration");
var contentTypeId = $getItemValue(ctx, "ContentTypeId");
var fileExtensionInfo = $getItemValue(ctx, "FileExtension");
var videoFileUrl = $getI