Skip to content
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

Unable to play SoundCloud files #811

Closed
mitchell-bu opened this issue Feb 20, 2020 · 3 comments
Closed

Unable to play SoundCloud files #811

mitchell-bu opened this issue Feb 20, 2020 · 3 comments

Comments

@mitchell-bu
Copy link

Current Behavior

When providing a src URL to a file hosted by SoundCloud, the player does not load the audio and instead shows 'You have not provided a valid SoundCloud URL'.

Expected Behavior

The player should play audio hosted by SoundCloud feeds.

Steps to Reproduce

  1. Go to the demo site: https://cookpete.com/react-player/ Or create a vanilla page with a standalone ReactPlayer component.
  2. Use a SoundCloud URL, such as http://feeds.soundcloud.com/stream/589508247-mtqs-podcast-amir-fassihi-amnion-life.mp3

Environment

Other Information

The player is redirecting the request to https://w.soundcloud.com/player/?url=http://feeds.soundcloud.com/stream/589508247-mtqs-podcast-amir-fassihi-amnion-life.mp3&visual=true&buying=false&liking=false&download=false&sharing=false&show_comments=false&show_playcount=false&callback=true

@sebbean
Copy link

sebbean commented Apr 1, 2020

@mitchell-bu i think you need to paste a soundcloud frontend url not an mp3 file url

@mitchell-bu
Copy link
Author

I ultimately forked this repo and since I don't care if I show the SoundCloud player, I just changed the MATCH_URL regex so feeds.soundcloud.com goes to the generic player.
const MATCH_URL = /(\/soundcloud\.com|snd\.sc)\/.+$/
May want to update this repo too to make the mp3 file URL not get routed to the SoundCloud player.

@cookpete
Copy link
Owner

Fixed in v2.0.1

albanqoku added a commit to albanqoku/react-player that referenced this issue Feb 24, 2021
Webmaster1116 added a commit to Webmaster1116/video-player that referenced this issue May 20, 2021
webmiraclepro added a commit to webmiraclepro/video-player that referenced this issue Sep 9, 2022
philip-luther added a commit to philip-luther/react-player that referenced this issue Nov 22, 2024
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

3 participants