Any custom attributes for the asset. Use the Attr
class.
The real filename with extension (if applicable) and without disk folder structure; maps
to file_name
The format of the file, generally the same as the file extension; maps to format
A 128-bit MD5 hash for the file, to ensure its contents; maps to md5_checksum
The file's mime-type
, e.g. video/wav
or image/jpg
. We recommend using a
mime-types
library (like mime-types and/or
@types/mime-types) to ensure that the
input provided here is actually valid; maps to mime_type
An optional descriptive name for the asset; maps to name
Any textual notes to accompany the asset; maps to notes
The AudioSalad media type, e.g. wav
or Front
(or for arbitrary files, e.g.
Document
); maps to sub_type
The asset type. Generally this will be either audio
, image
, or asset
(for all other
types of assets), but any string can be provided; maps to type
Generates AudioSalad XML for the asset.
AudioSalad XML <asset>
element
Generated using TypeDoc
Encapsulates a file asset, e.g. an audio recording, artwork image, etc; maps to
asset_type