Skip to main content
Skip table of contents

AudioModel

Model for assets where type attribute value starts with 'audio.'

implements: hash, method
bundle: standard information structure (sismodel)
since 5.3.0
Model for assets where type attribute value starts with 'audio.'

Defined hash keys

alt ↦ String
since 5.3.0
get 'alt' value (only available if AudioModel generated from AudioBoxTagModel)

autoplay ↦ Boolean
since 5.3.0
get value autoplay (can only be true if AudioModel generated from AudioBoxTagModel)

hasLock.<String:hashKey> ↦ Boolean
since 5.2.0
Check if the value accessed by the hash-key 'hashKey' within this model is secured by an active lock by permission rights management

  • Example:
    model.hasLock.elem - is elem in model guarded by an active permission lock?
    article.hasLock.text - Returns if there is a permission lock for text configured in 'article' ? (In this example 'article' is of of type ArticleModel)

isLocked.<String:hashKey> ↦ Boolean
since 5.2.0
Check if the value accessed by the hash-key 'hashKey' within this model is is locked for current user by permission rights management

  • Example:
    model.isLocked.elem -- is value for elem in model locked for current logged-in user?
    article.isLocked.text -- Returns if the value for 'text' within 'article' is locked (not accessible) for current user. (In this example 'article' is of of type ArticleModel)

mimetype ↦ String
since 5.3.0
get mime-type of audio

permissionGroups ↦ sequence<PermissionGroupAssetModel| PermissionGroupAssetFeatureModel>
since 5.3.0
get values of feature 'censhare:module.oc.permission.group' or 'censhare:module.oc.permission.group-ref'

persistentSrc ↦ String
since 5.3.0
get persistent src-URL

poster ↦ ImageModel
since 5.3.0
get the poster image (only available if AudioModel generated from AudioBoxTagModel)

previewImage
since 5.3.0
get audio from 'preview' storage

src ↦ String
since 5.3.0
get src-URL

title ↦ String
since 5.3.0
get title (only available if AudioModel generated from AudioBoxTagModel)

Permission Verbs used

audio.alt
since 5.3.0 'audio.alt' - guards requests to '→alt'

audio.autoplay
since 5.3.0 'audio.autoplay' - guards requests to '→autoplay'

audio.mimetype
since 5.3.0 'audio.mimetype' - guards requests to '→mimetype'

audio.permissionGroups
since 5.3.0 'audio.permissionGroups' - guards requests to '→permissionGroups'

audio.persistentSrc
since 5.3.0 'audio.persistentSrc' - guards requests to '→persistentSrc'

audio.poster
since 5.3.0 'audio.poster' - guards requests to '→poster'

audio.preview
since 5.3.0 'audio.preview' - guards requests to '→preview'

audio.src
since 5.3.0 'audio.src' - guards requests to '→src'

audio.storageitem
since 5.3.0 'audio.storageitem' - prefixes requests to storageitems used as audio.storageitem.360p where 360p is the storageKey

audio.title
since 5.3.0 'audio.title' - guards requests to '→title'

Methods

[used as method](String:storageKey)AudioModel
since 5.3.0
get a model representing given 'storageKey'

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.