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.
The above does not work...
The below works (same file).
Any guess?
(Off topic) I guess more people will visit here because React Native is growing now.