-
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
SC.stream fails on Firefox, TypeError: t.match(...) is null #68
Comments
I have the same issue. Here's what it says to me: Error: Permission denied to access property "href" It's killing me! |
I had same issue. Decided to use SoundManager2 as my audio player and all works well now simply supply audio player with the proper stream-url |
MchlG, thanks for the solution but could you develop more? I've downloaded SoundManager2 but I'm not really sure what to do, should I place the folder somewhere? |
@yimmyao once you have downloaded SoundManager2, grab one of the script files (there are 4, i believe two of them are minified and two of them are for debugging, choose the one you want to use and you can replace it later if you want), place the script file in your folder where index.html resides. Link the js file to index.html , use this script in the head of your index.html...
and then use it like this (many other ways to use it, read the documentation it is excellent)
excellent documentation and examples found here... http://www.schillmania.com/projects/soundmanager2/demo/api/ |
@MchlG thanks for the quick answer! Sorry to bother you again but I've lost you at some point, so I've placed the script where index.html resides (I've chosen soundmanager2.js) and If got it right, I placed the script you've written this way: http://i.imgur.com/MZho2Ep.jpg however I didn't understand what to do next when you said "use it like this" should I place that script someplace else too? Also, how do I incorporate it to Firefox? (You must be having a good laugh by now hah, yes I'm clueless...) |
I am not laughing! I am only an egg myself. From your image it looks like you have made a mistake linking the soundmanager.js file after the script you've entered, i think it should be like this
So the script i've wirrten goes after the link to the soundmanager.js file. Also, make sure that soundmanager.js is in the same directory (same folder) as your index.html file. Then the part that shows how to use it with a soundcloud URL, that goes in your main.js file, which you should link at the bottom of the body of your index.html. Sorry if my instructions are poor, I myself am new to web dev. If you are still unable to figure it out, you can provide me with your email and I can zip up my working project and send it to you that you may test it locally. |
Thank you so much, on my way here to see the new instructions... I find that the problem has gone... no updates or anything... just vanished. It's really weird. |
Not sure if this helps anyone, but I had the same problem. Turns out it was because I had another Flash plugin installed (VLC Web Plugin from VLC Media Player installation), so when it tried to parse the Flash version number from the player plugin name, it got no matches and thus the crash. Disabling the VLC Firefox plugin solved it for me. Unfortunately, the offending code is in a file called widget.js, which I can't find anywhere on the soundcloud GitHub. I'm not sure if this is some non-opensourced part of their code or what. |
Hi. So I call a basic:
SC.stream("/tracks/" + track_id_string).then(handler, errorHandler)
And on Firefox only I get the following error:
The error is in this little function:
Error coming from second line. It removes all characters before the first digit in the
t
string splits the rest by commas. Ift = "abc123d,ef"
thene = ["123d","ef"]
. But you get a type error when there's no digit in thet
string.Not sure why it's only a problem on Firefox. Any ideas?
The text was updated successfully, but these errors were encountered: