Renders a pre-generated alternate format of a binary asset, such as a transcoded video rendition or a resized image, identified by the given format spec. Registered against a content type as the "alt-format" XStream alias and produced by AssetViewsBuilder-configured content types when a path mapping needs to serve a specific output format rather than the original file. At render time it streams the pre-generated bytes for the source asset's format from the hash content store and, where video metadata is available, sets non-standard response headers describing the content's duration and dimensions.

Implements: AssetView


Properties

PropertyReturnsDescription
textStringA short human-readable label for this view, combining a fixed prefix with the format spec's own description. Used where views are listed for an administrator to choose from.

Methods

getContentType(Asset item)

Returns: String

The MIME content type of the alternate format this view produces, as declared by the format spec.

ParameterDescription
itemthe asset the content type is being resolved for; not used, since the output type is fixed by the format spec

getText()

Returns: String

A short human-readable label for this view, combining a fixed prefix with the format spec's own description. Used where views are listed for an administrator to choose from.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.