This is just another way to embed music in your site. The previous tutorial (Music Embed) is just a simple way that only needs a music url which means you have to find a music's url or upload it by yourself in any drive, in my case i upload it in my own site.
This time, here's an example of Spotify's music embed.
This example's code is like this :
<iframe style="border-radius:12px" src="https://open.spotify.com/embed/track/5zpDHEU12zATwLGvozxPw2?utm_source=generator" width="50%" height="152" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>You can customize a lil bit of it's appereance with the style code, or you can choose the mini customize that provided by Spotify itself.
Here's the way to get the spotify embed :
Click the three dots (…) in the right side of the song or playlist that you want to share/embed → Share → Embed. Then an another window will pop up which will gives you the code and mini customize settings :
You can choose the color, size : compact/normal then the percantage of the width. Final step is copy the code that given and paste it in your side.
Another music platform also provides their own music embed, you can explore it by yourself, good luck~