Dynamic Player Styles #129
Replies: 3 comments 2 replies
-
Hey @ClaudioPuggioni |
Beta Was this translation helpful? Give feedback.
-
Hey @gilbarbara , I just set one up. However, I did not include the authorization token, and access token fetching. Here's the link to the codesandbox: https://codesandbox.io/s/for-gilbarbara-nfe1m4?file=/src/App.js Note: |
Beta Was this translation helpful? Give feedback.
-
hey @ClaudioPuggioni Added support for dynamic styles in v0.11.3 I've created a script to update the required styles if you want a basic example. You'll need to set up the const handleSpotifyPlayerCallback = async ({ track, type }: CallbackState) => {
if (type === TYPE.TRACK) {
const trackStyles = await request(
`https://your-domain/api/getImagePlayerStyles?url=${track.image}`,
);
setStyles(trackStyles);
}
}; |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'll make sure to keep it short.
I want to change the player styles every time the track/album changes.
Currently, the styles for the player can only be set once (before the player loads). Not sure if I'm doing something wrong.
Beta Was this translation helpful? Give feedback.
All reactions