UNPKG

spotify-audio-element

Version:

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

16 lines (15 loc) 394 B
export default class CustomAudioElement extends HTMLAudioElement { static readonly observedAttributes: string[]; attributeChangedCallback( attrName: string, oldValue?: string | null, newValue?: string | null ): void; connectedCallback(): void; disconnectedCallback(): void; config: { startAt?: number; theme?: 'dark' | 'light'; preferVideo?: boolean; }; }