<@cms_audio>
Obtain the list of audio data for the audio collection. The data is embedded within the file.<#list DataList as video>${video.title}</#list>Traverse data
| Attribute | Type | Required | Available values | Description | Default |
|---|---|---|---|---|---|
| page | BOOLEAN | No | true = Yes false = No | Do we need to paginate the data for retrieval? | false |
| size | INTEGER | No | Pagination: Number of data entries, default: 10 | ||
| condition | STRING | No | Extend SQL conditional statements, for example: title like 'a%' | ||
| contentId | INTEGER | Yes | Audio Content ID |
| Attribute | Description | Type |
|---|---|---|
| audioId | Audio ID | Long |
| author | Author: | String |
| bitRate | Bitrate | Integer |
| channels | Number of channels | Integer |
| contentId | Content ID of the corresponding content | Long |
| createBy | Creator | String |
| createTime | Creation Time | LocalDateTime |
| decoder | Encoding methods | String |
| description | Introduction | String |
| duration | Duration, unit: milliseconds | Long |
| fileSize | File size, unit: bytes | Long |
| format | Audio format | String |
| path | Audio resource path | String |
| remark | Notes/Comments | String |
| samplingRate | Sampling rate | Integer |
| siteId | Site ID | Long |
| sortFlag | Sorting values | Integer |
| src | Audio access address | String |
| title | Audio Title | String |
| type | Audio type | String |
| updateBy | Last modified by: | String |
| updateTime | Last modified time | LocalDateTime |
<@cms_audio contentid="${Content.contentId}" size="10">
<#list DataList as audio>
<div class="audio-item">
<audio controls>
<source src="${iurl(audio.path)}" type="audio/mp3">
Your browser does not support the audio element.
</audio>
</div>
</@cms_audio>