Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Unable to embed full spotify song on Electron App

Solved!

Unable to embed full spotify song on Electron App

Plan

Premium

Country

Singapore

 

My Question or Issue

I have been trying to embed spotify tracks into an Electron React App using the iFrame method. However, it only appears to be showing 30 second previews on the web application, yet on chrome browser, it shows the full length song. May I know how to solve this issue? I tried looking around but it seems that there has not been a solution to this preview problem..

 

Reply

Accepted Solutions
Marked as solution

That's intended behavior. It will only work in desktop browsers when a Spotify Premium account is logged in.

Alternatively, you can implement the Spotify Playback SDK. To make this work for Spotify Premium subscribers, you'll also need to implement an authorization code flow. (NOT client credentials!)

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

1 Reply
Marked as solution

That's intended behavior. It will only work in desktop browsers when a Spotify Premium account is logged in.

Alternatively, you can implement the Spotify Playback SDK. To make this work for Spotify Premium subscribers, you'll also need to implement an authorization code flow. (NOT client credentials!)

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts

Type a product name