Spotify
Last updated
Last updated
The <OneTap />
component provides Spotify services for Premium & Free subscribers.
Spotify Premium users can enjoy the Spotify Web Player with their Spotify account after signing in.
If you are a Premium user, you can access more music through our SDK.
Please refer to the Spotify documentation to learn more about this.
We provide a music player for users without a Spotify subscription as well. If you have are non-premium users, you can pass in a custom audio file to play.
Example:
Once you install the SDK and add <OneTap />
, you can see a popup for Spotify Signin.
In order to sign in, please click Sign In to Continue button
Once signed in successfully, you are redirected to back to the artist's website.
Clicking on the web player here text converts the popup into a web player, initiating music playback.
Property | Description |
---|---|
Property | Description |
---|---|
Finally, enjoy music by clicking the play button.
spotifyDefaultLink
Optional.
Spotify URI of the context to play. Valid contexts are albums, artists & playlists.
A JSON array of the Spotify track URIs to play. For example: ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh", "spotify:track:1301WleyT98MSxVHPZCA6M"]
spotifyFreeAudioUrl
Optional. Audio for Spotify free
users.
spotifyStartIndex
Optional. Track number to begin with from the selected media in spotifyDefaultLink. Only applicable if spotifyDefaultLink is an album or a playlist.
spotifyFreeAudioUrl
Optional. music audio URL.