Skip to content
Client
Server

Reference / @open-music-sdk/lib-preview-player / tPreviewable

Interface: tPreviewable ​

Defined in: lib/lib-preview-player/src/player.ts:13

A track as the player takes one: any resource, as a client handed it over. What is read is the URL of its first preview, under attributes.previews. A tSong and a tMusicVideo from @open-music-sdk/types have one. A library song has none, and is skipped like any other track without a clip.

Properties ​

attributes? ​

ts
readonly optional attributes?: object;

Defined in: lib/lib-preview-player/src/player.ts:15

What the resource says of itself. Its previews list is read, and the url of the first preview in it. A track without one is skipped.

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.