audiocogs / aac.js

AAC decoder in JavaScript.
http://audiocogs.org/codecs/aac/
GNU Lesser General Public License v3.0
222 stars 45 forks source link

Help me! - "Uncaught Error: Invalid ADTS header." #14

Open jsvenus opened 8 years ago

jsvenus commented 8 years ago

I'm trying to decode AAC audio stream by fromBuffer().

Help me! //--------------------------------------------------------------------- this.ws.onmessage = function (evt) {

        buffer = new AV.Buffer(new Uint8Array(evt.data));
                asset = AV.Asset.fromBuffer(buffer);
                player = new AV.Player(asset);
                asset.start();

    }.bind(this);

//--------------------------------------------------------------------- help me