Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 276
René Roth Avatar asked Aug 13 '16 20:08

René Roth


1 Answers

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 :/

like image 101
seahorsepip Avatar answered Nov 03 '22 16:11

seahorsepip