-
Notifications
You must be signed in to change notification settings - Fork 83
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
Player doesn't work in Chrome #39
Comments
I'm using the 1.1.x SDK as well, and I experience the same issues. When opening a page where the SDK is initialized I try the following; load SDK 3.0 -> Start a basic stream via the Javascript console: load SDK 1.1.5 -> Start a basic stream via the Javascript console: Could you confirm this? |
Yes I'm seeing this as well for any track that attempts to play using RTMP. The SDK checks that flash is available and uses the RTMP stream, it begins to buffer and then won't play. |
Any news about this bug? Any solutions? Got the same on my website, didn't found any fix... http://www.dealerdemusique.com/, works fine on any other browser. |
Same here. No errors in console, network tab shows that track is downloaded, but no sound. My script used to work in chrome v 47, and stopped working in 48. |
Same problem here. We're using the old version of the SDK and the player doesn't make any sound, even if it's loading and all seems to work fine... |
Any news guys? Our websites are broken still. 👎 |
Hi guys, I don't think soundcloud's ever going to fix this issue since they no longer support sdk versions prior to 3.0. I fixed it by including the latest soundmanager2 library in my application, and loading it using $.getScript in my main js file, giving me a global, already initialized HTML5-only version of the soundManager, so my songs play on chrome now. |
There's some more detail on this issue on Stack Overflow
|
Hi, |
Same here... @jstallworth, could you detail your solution ? You seem to be the only one having found a workaround |
Ok here's how I solved it. From testing in the console I found that within SC.stream() a new soundManager object was created. Typing soundManager.version into the console, I could see that it was an older version that defaults to flash, thus the problem in Chrome. From there, I figured I would have to download the newer soundManager since it would certainly default to html5 (iOS doesn't have flash). Here are the steps I took:
Let me know if this doesn't work for you/isn't clear |
@jstallworth this fixed it for me too, no other changes needed in my code (e.g. http://soundgram.co). Thanks a million. |
I've tried this. Doesn't work for me :( I've tried adding script as $.getScript("js/sm2/script/soundmanager2.js"); but this doesn't help, seems like SC overrides this in my case. |
It doesn't fixed it for me.. the soundManager object is replaced when I call SC.stream.. |
@jstallworth Thanks for finding out the issue, my application is using the same api from this ember application https://github.com/lrdiv/ember-soundcloud and i am having exactly the same problem in chrome, deactivating the flash it works fine, now i have to figure it out how to refactor it with soundManager2. Any help is appreciate |
I was able to get audio to playback on Chrome, Safari, and Firefox thanks to the solution provided by @jstallworth and a peek a @smarchal's site. However, I could only get this working using a souncloud sdk lacking a version number I'm now trying to get things working with v3.0.0 of the SDK which uses Promises and my best guess at this point is that using soundmanager, i need to load the resource returned from |
I figured out how to get SoundManager2 to work with the SoundCloud Javascript sdk v3.0.0 on Chrome, Safari, Firefox and thought the code might be helpful so here it is. (This assumes you called the soundmanager will get the audio file from soundcloud so you need to pass in soundcloud client id
|
Hey all, works in firefox, chrome, safari |
i had to add soundManager.preferFlash = false to line 1928 |
I'm having the same issue and implementing either of these fixes does not resolve the issue. Using @jstallworth fix the player will play the song once then it will not allow us to play it again. and using the new sdk it breaks our waveforms and our play/pause features so that's not applicable. Note: this only works on the actual product pages, the custom soundcloud still works on the main site on all browsers |
I did this: *** long tracks which use hls, will need an additional hls playback support. |
I've just found out a simple workaround for this issue. Checking the player returned by the sc.stream(), in the options property, I found a property called protocols, which is an array like this ['rtmp', 'http'], that 'rtmp' is the problem. So I try remove the protocols 'rtmp' before running player.play() and it actually worked. |
@tttt-conan your work around works well for me thank you. Do you have any idea why it wont work on my iPhone's safari browser? |
@tttt-conan: Do you have a code example where you added the protocols option? Thx in advance |
@aydamacink I just remove the protocols like this
https://en.wikipedia.org/wiki/Real-Time_Messaging_Protocol |
Salvation. After hours of frustration and inconsistent documentation. Used @tttt-conan solution. Don't seem to need Soundmanager 2. :) |
I just used @tttt-conan solution as well. Worked for me! |
@tttt-conan WORKS! |
I chose to reverse the |
@alimony actually, that is the correct solution. Everyone just forgot about Flash. Although, I didn't add old browser support in my project, so it didn't occur to me. |
@tttt-conan thx for your hint.. awesome! Ended up not removing the rtmp protocol.. but reversed the order if it was 1st element of the array.
|
In many cases, problems like these will turn out to be caused by some amateurish Chrome extension which has never been thoroughly tested. In my case, the problem of soundcloud files not playing was solved from the very moment that I disabled (and then removed) my "Disable HTML5 Autoplay" - a plugin which was a prime suspect of course, as it was made to prevent something from playing (automatically). |
Hi @tttt-conan |
Hey @VasudevAkhil the player should choose the best protocol automatically that is supported internally. Why do you need to change it? |
Hi @VasudevAkhil , I haven't checked it yet but even with SDK version 3.3.1 and Chrome 71 this issue is still persist? |
I am going to close this issue, because I believe the initial problem mentioned here was fixed a while ago. Please open a new issue if something is still not working properly, and we can discuss it there. Thanks! |
The player is working at https://www.producerspot.com/ |
I've been having issues with getting Soundcloud to play correctly in Chrome. It used to work perfectly but has recently broke, but only in Chrome. It works fine in any other browser.
I'm using v1 of the SDK, so it still has the SoundManager player. However, quick tests with the latest version of the SDK give me the same results. So while I'm planning to upgrade to the latest SDK as soon as possible that doesn't fix the issue.
I seem to be able to get around the issue by moving
#sm2-container
within view, and pressing play on the now visible flash player...Then everything works as it previously did. Any ideas?
Edit – I've just put the following into a standalone document to the same results. Works in Safari, Firefox, etc... but doesn't in Chrome.
The text was updated successfully, but these errors were encountered: