Closed deoxxa closed 11 years ago
Basically the problem is that ECMAScript allows "named properties" on Array instances, however the JSON standard does not (it only allows indexed entries)...
FLV for some reason likes to encode their metadata into an Array instance with properties on it, where it would be more appropriate to use an Object here. It's kinda lame.
Unfortunately this is a language level thing and there's not much that node-amf
can do about it (we're at the mercy of JSON.stringify()
). I'd suggest trying to catch, and convert it to an Object in your code before calling JSON.stringify()
. Cheers!
ActionScript, you crazy. Thanks for the clarification.