audiocogs / aurora.js

JavaScript audio decoding framework
http://audiocogs.org/codecs
1.26k stars 185 forks source link

AAC does not work for some URL #177

Closed ohtangza closed 7 years ago

ohtangza commented 7 years ago
var AV = require('av');
require('aac');
var asset = AV.Asset.fromURL('http://cdn.online-convert.com/example-file/audio/example.aac');
asset.decodeToBuffer(function(buffer) {
  // buffer is now a Float32Array containing the entire decoded audio file
  console.log(buffer.length);
});

The above does not work...

The below works (same file).

var AV = require('av');
require('aac');
var asset = AV.Asset.fromFile('./example.aac');
asset.decodeToBuffer(function(buffer) {
  // buffer is now a Float32Array containing the entire decoded audio file
  console.log(buffer.length);
});

Any guess?

(Off topic) I guess more people will visit here because React Native is growing now.