# Audio

## Audio

<div align="left"><img src="https://963067965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIJW5nbmYRaSNWePAac%2F-MIxu2KP4MClY9gv_q2W%2F-MIxukRUFPhB_4BIpoB2%2FProperty-Audio.png?alt=media&#x26;token=04f311e6-fde8-4833-8d56-d0c7bdd67cf9" alt=""></div>

| Property | Function                                                                                                                                                                                  | Type   |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| Autoplay | <p>Start playback automatically<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Autoplay</code><br><strong>Code:</strong><br><code>widget.content.autoplay</code></p> | `bool` |
| Loop     | <p>Looping the playback<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Loop</code><br><strong>Code:</strong><br><code>widget.content.loop</code></p>                 | `bool` |

## Equalizer

<div align="left"><img src="https://963067965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIJW5nbmYRaSNWePAac%2F-MIxu2KP4MClY9gv_q2W%2F-MIxukRVKgaA9Ze_Pfrp%2FProperty-Audio-Equalizer.png?alt=media&#x26;token=03fa21af-c1bd-4187-ae79-db33044deae7" alt=""></div>

| Property        | Function                                                                                                                                                                                                   | Type     |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| Equalizer       | <p>Display graphic equalizer<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Equalizer > Equalizer</code><br><strong>Code:</strong><br><code>widget.content.showEqualizer</code></p>   | `bool`   |
| Equalizer color | <p>Equalizer color<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Equalizer > Equalizer color</code><br><strong>Code:</strong><br><code>widget.content.styleColor</code></p>          | `color`  |
| Bar width       | <p>Equalizer bar width in pixels<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Equalizer > Bar width</code><br><strong>Code:</strong><br><code>widget.content.styleRows</code></p>   | `int`    |
| Symmetric       | <p>Display bars symmetrically<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Equalizer > Symmetric</code><br><strong>Code:</strong><br><code>widget.content.styleSymmetric</code></p> | `bool`   |
| Dots            | <p>Display dots instead of bars<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Equalizer > Dots</code><br><strong>Code:</strong><br><code>widget.content.styleDots</code></p>         | `bool`   |
| File name       | <p>Audio file name<br><br><strong>Actions editor:</strong><br><code>Property > Audio > Equalizer > File name</code><br><strong>Code:</strong><br><code>widget.content.audioFile</code></p>                 | `string` |

### Actions

| Property | Function                                                                                                                                                       |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Play     | <p><strong>Actions editor:</strong><br><code>Actions > Common > Play</code><br><strong>Code:</strong><br><code>widget.content.script.actionPlay()</code></p>   |
| Stop     | <p><strong>Actions editor:</strong><br><code>Actions > Common > Stop</code><br><strong>Code:</strong><br><code>widget.content.script.actionStop()</code></p>   |
| Pause    | <p><strong>Actions editor:</strong><br><code>Actions > Common > Pause</code><br><strong>Code:</strong><br><code>widget.content.script.actionPause()</code></p> |

### Events

| Property | Function                                                                                                                                                                            |
| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Play     | <p>Event when playing started<br><br><strong>Actions editor:</strong><br><code>Event > Play</code><br><strong>Code:</strong><br><code>widget.content.script.eventPlay()</code></p>  |
| Stop     | <p>Event when playing stopped<br><br><strong>Actions editor:</strong><br><code>Event > Stop</code><br><strong>Code:</strong><br><code>widget.content.script.eventStop()</code></p>  |
| Pause    | <p>Event when playing paused<br><br><strong>Actions editor:</strong><br><code>Event > Pause</code><br><strong>Code:</strong><br><code>widget.content.script.eventPause()</code></p> |
