Skip to content

SoundCloud player loads twice and custom option 'color' is wrongly typed #1928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vincentwinkel opened this issue Apr 30, 2025 · 2 comments

Comments

@vincentwinkel
Copy link

  1. Go to the demo page: https://cookpete.com/react-player/
  2. Open the inspector
  3. Play a SoundCloud song (Test A or Test B)
  4. A first call is made, without option in the URL -> canceled
  5. A second call is made -> seems ok

Now, I follow the doc and add custom options, as follow:

config={{
  soundcloud: {
    options: {
      color: '00ff00',
      // ...

The URL contains now &color=true instead of &color=00ff00.

@muthusathya1
Copy link

include the '#' before your HEX color value

@vincentwinkel
Copy link
Author

It sould be without # (cf this example: https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/38306562&color=00ff00)

But even with # or %23, it still doesnt work. After digging, I think the issue in on soundcloud's side (I opened an issue: soundcloud/api#400)

But I leave this one open because of the main problem (player loaded twice).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants