jsantell / dancer.js

high-level audio API, designed to make sweet visualizations
jsantell.github.com/dancer.js
MIT License
2.11k stars 211 forks source link

Doesn't work with Webkit browsers (shoutcase/icecast streams) #23

Open Yahav opened 11 years ago

Yahav commented 11 years ago

Dancer won't work with Chrome at some cases, problem is: i have no idea what's the difference. all i know it this:

HOME PC: (Win7,Chrome‪21.0.1180.75 m‬) : playing music and beating.

WORK PC: (Win7,Chrome‪21.0.1180.75 m): playing music but not beating (no errors in console) - this.proc.onaudioprocess is never called.

FRIEND PC: (Win7,Chrome‪21.0.1180.75 m): not playing music nor beating (no errors in console) - this.proc.onaudioprocess is never called as well.

jsantell commented 11 years ago

Is this on the edge version in the repo, or the one on the gh-pages? Tested both in 21.0.1180.75 and canary 23.0.1232.0, on OSX (works in both). Will have to boot up Windows I think to dig around on this.. Thanks!

Yahav commented 11 years ago

we tried in OSX using safari and it doesn't work as well. where can i find the edge version in the repo? i would have sent you the URL i'm using but it cannot be public and i can't find a private messages option here in github

jsantell commented 11 years ago

Safari 6 implements the Web Audio API, but not all components work with it since using createMediaElementSource (see test case, works in Chrome, not Safari).

Edge version just being whatever the latest is in the repo, as the one on gh-pages still need to be updated to the latest -- shoot me any URLs on twitter or an email

jsantell commented 11 years ago

Issue with using shoutcast/icecast real time streams

Gaffen commented 10 years ago

I investigated the soundmanager issue and it seems to be a cross domain problem - it can be fixed by downloading SM2 and extracting the cross-domain flash file to use instead of the one packaged with dancer.

Gaffen commented 10 years ago

Doing the above allows soundmanager to play the file, however you need to do a bit of tinkering to hook the ._whileplaying() SM2 function into the adapterFlash.js update() method.

I can make a merge request with my changes if it's of interest?

Yahav commented 10 years ago

@Gaffen please do, this could be helpful.

Gaffen commented 10 years ago

@Yahav I'll make a fork and request a little later - using dancer for a client project who needs Safari support!