spotify-audio-element

A custom element for the Spotify player with an API that aims to match the `<audio>` API

MIT 19 个版本
安装
npm install spotify-audio-element
yarn add spotify-audio-element
pnpm add spotify-audio-element
bun add spotify-audio-element
README

<spotify-audio>

NPM Version NPM Downloads jsDelivr hits (npm) npm bundle size

A custom element for the Spotify player with an API that aims to match the <audio> API.

Example

<script type="module" src="https://cdn.jsdelivr.net/npm/spotify-audio-element@0.1/+esm"></script>
<spotify-audio controls src="https://open.spotify.com/artist/246dkjvS1zLTtiykXe5h60"></spotify-audio>

Install

First install the NPM package:

npm install spotify-audio-element

Import in your app javascript (e.g. src/App.js):

import 'spotify-audio-element';

Optionally, you can load the script directly from a CDN using jsDelivr:

<script type="module" src="https://cdn.jsdelivr.net/npm/spotify-audio-element@0.1/+esm"></script>

This will register the custom elements with the browser so they can be used as HTML.

版本列表
1.0.4 2025-11-25
1.0.3 2025-08-08
1.0.2 2025-07-15
1.0.1 2025-07-11
1.0.0 2025-07-11
0.1.14 2025-06-26
0.1.13 2025-03-12
0.1.12 2024-12-19
0.1.11 2024-12-19
0.1.10 2024-06-14
0.1.9 2024-05-27
0.1.8 2024-05-26
0.1.7 2024-05-24
0.1.6 2024-05-17
0.1.5 2024-05-09
0.1.4 2024-05-08
0.1.3 2024-04-21
0.1.2 2024-03-15
0.1.1 2023-04-23