UNPKG

@hekeh/easy-audio-player-vue

Version:
52 lines (34 loc) 1.54 kB
# "Easy Audio Player" [English](https://www.github.com/HEKEH/easy-audio-player/blob/master/README.md) | [中文](https://www.github.com/HEKEH/easy-audio-player/blob/master/README.zh-cn.md) ## Introduction Easy Audio Player is a simple audio player that supports Vue 3 and React. ![View](https://raw.githubusercontent.com/HEKEH/easy-audio-player/master/img/demo.png) ## Installation ### Vue 3 ```bash # Using npm npm install @hekeh/easy-audio-player-vue # Using yarn yarn add @hekeh/easy-audio-player-vue # Using pnpm pnpm add @hekeh/easy-audio-player-vue ``` ### React ```bash # Using npm npm install @hekeh/easy-audio-player-react # Using yarn yarn add @hekeh/easy-audio-player-react # Using pnpm pnpm add @hekeh/easy-audio-player-react ``` ## Parameters | Parameter | Description | Type | Required | Default | | --------- | --------------------- | -------------------- | -------- | ------------------------- | | url | Audio URL | `string` | Yes | - | | options | Configuration options | `AudioPlayerOptions` | No | See options configuration | ### Options Configuration | Parameter | Description | Type | Default | | ------------------ | ------------------------------------- | --------- | ------- | | stopOthersOnPlay | Stop other audio players when playing | `boolean` | `true` | | showDownloadButton | Show download button | `boolean` | `true` |