I know this is an old question, but I implemented this way of getting track info into PawTunes player, also I've added a "concept" that allows real time icy meta reading in javascript. It's buggy because I haven't had the time to actually complete it.
See here:
JS way: https://github.com/Jackysi/PawTunes/blob/master/src/player/ts/html5-audio-mse.ts
PHP: https://github.com/Jackysi/PawTunes/blob/master/inc/lib/PawTunes/StreamInfo/Direct.php