--- title: Audio Player component setup description: The Audio Player component to embed sound content into a web page document.Configure the audio file location and player behavior such as looping with these properties.Enable the user to mute, autoplay, or loop audio on the Audio Player component.Select event handlers to configure the actions \(events\) provided with the Audio Player component. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/audio-player-component-uib-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 5 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # Audio Player component setup The Audio Player component to embed sound content into a web page document. ## Before you begin This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md). **Note:** This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component. Role required: admin or ui\_builder\_admin ## Procedure 1. Define a label for your Audio Player that differentiates it from other components in the content tree. A label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md). \[Omitted image "audio-player-content-tree.png"\] Alt text: Audio Player in content tree. 2. Select the Audio Player component, using one of these methods: - Click anywhere within the component. - Select the Audio Player label you created for your component in the content tree. The property fields appear in the **Config** tab in the setup panel on the right. **Parent Topic:**[UIB Setup Information](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md) ## Audio Player component properties Configure the audio file location and player behavior such as looping with these properties. To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type. - **Data binding**: Creates dynamic property values from multiple sources. Sources include state variables \(@state\), URL variables \(@context\), or data resource payloads \(@data\). For details, see [Add and configure data resources to a page](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md). - **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
| Field | Property | Description |
|---|---|---|
| Audio file URLs | sources | A JSON array of URLs for audio content. The browser chooses the first source that it supports. The URLs can be a full URL, a file on the instance, or embedded data.Examples: - Full URL: `["https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3"]` - From instance: `[\"connect_alert.mp3\"]` - Embedded data: `["data:audio/mp3;base64,//.......]` |
| Muted | muted | When true, audio is silent. To give the user the choice of muting the audio, set the value in a client state parameter. See "Set up UI controls for mute, autoplay, and loop."Default: false |
| Autoplay | autoplay | When true, plays the audio content automatically when it loads. To give the user the choice of autoplaying the audio, set the value in a client state parameter. See "Set up UI controls for mute, autoplay, and loop."**Note:** The audio player does not begin to autoplay until a user interacts with it. Default: false |
| Loop | loop | When true, the audio content automatically repeats when it reaches the end. To give the user the choice of looping the audio, set the value in a client state parameter. See "Set up UI controls for mute, autoplay, and loop."Default: false |