René Roth
René Roth

Reputation: 2106

getByteFrequencyData not working for live streams in Safari

For a live demonstration see: http://codepen.io/rrorg/pen/WxPjrz?editors=0010

When playing a HTTP audio live stream in Safari, the analyser's getByteFrequencyData fills the Array with zeroes.

In all other browsers this works as expected, and Safari has no problems correctly populating the frequency data for static files.

CORS headers are correctly set, the Apple documentation mentions no special cases.

Upvotes: 14

Views: 1439

Answers (1)

seahorsepip
seahorsepip

Reputation: 4809

You're not going to like this: Safari does not support createMediaElementSource.

Source: http://caniuse.com/#feat=audio-api ,

It's due to not support for: http://caniuse.com/#feat=stream

Solution? ...adobe flash :(

Latest Safari nightly webkit seems to have solved this but that doesn't solve the problem for now :/

Upvotes: 2

Related Questions