# audio-compat-skin

The audio preset's plain, unbranded skin, a polished step above native controls

The Compat skin of the audio preset: the same core controls with plain, unbranded surfaces that avoid newer visual effects such as backdrop blur. Its time slider supports chapter segments and thumbnail previews, and it adds captions and AirPlay buttons that the default audio skin leaves out. The preset also provides [AudioSkin](./audio-skin.md), [NeutralAudioSkin](./audio-neutral-skin.md), and [ScaffoldAudioSkin](./audio-scaffold-skin.md). See [Skins](../../guides/skins.md#choose-a-skin) to choose between them and [Customize skins](../../guides/customize-skins.md) to install and edit its source.

## Import

```ts
import '@videojs/html/audio/compat-skin';
```

The import registers the skin and every UI element it composes. The [CDN](../../guides/cdn.md) player bundle registers this skin together with its player:

```html
<script type="module" src="https://cdn.jsdelivr.net/npm/@videojs/cdn@10.6.0/audio-compat.js"></script>
```

## Anatomy

The skin goes between the player and the media component. It renders its controls around the media.

```html
<audio-player>
  <audio-compat-skin>
    <audio></audio>
  </audio-compat-skin>
</audio-player>
```

## Styling

Packaged skins style themselves and expose a small set of public CSS custom properties. Everything else inside the skin is private and may change between releases. [Customize skins](../../guides/customize-skins.md#style-a-packaged-skin) documents the properties. For deeper changes, the Video.js registry provides the skin files.

## Examples

### Basic Usage

**index.html**

```html
<audio-player>
  <audio-compat-skin class="html-audio-compat-skin-basic">
    <audio src="https://stream.mux.com/BV3YZtogl89mg9VcNBhhnHm02Y34zI1nlMuMQfAbl3dM/audio.m4a" crossorigin="anonymous"></audio>
  </audio-compat-skin>
</audio-player>
```

**index.css**

```css
.html-audio-compat-skin-basic {
  display: block;
  width: 100%;
}
```

**index.ts**

```ts
import '@videojs/html/audio/player';
import '@videojs/html/audio/compat-skin';
```

## Own the UI

Packaged skins keep their controls and layout inside Video.js. When you need to add, remove, rearrange, or deeply restyle controls, use Shadcn to add the skin source to your project. Its components, layout, styles, and interactions become local files you can change.

- [Install Video.js with Shadcn](../../guides/installation-shadcn.md#choose-how-to-install): Add editable skin source and build a working React or HTML player