I agree with @LTomy - it might be easier for you to upload them to YouTube and them directly embed through YouTube's services, or use an iframe from there.
I think I’m a bit confused still. You say you want to load a playlist - where is said playlist hosted? Is this through Spotify or YouTube? Or is it on your local host? Knowing where the playlist you want to embed is located will help us get you the right code! :)