I meant to answer this a while back...
Working Demo.. [ A very basic demo of AAC file playback ] (see below if you need some test AAC file)
I can happily confirm that it's 100% possible to play an .aac
audio file using NetStream.
So to clarify my own questions:
You need both AAC types mentioned at first to kickstart the AAC decoder then afterwards you can do the usual FLV tag with AAC type: Raw + Raw AAC data (no ADTS header) and continue as such until track end.
Nope. No ADTS bytes should be sent to the Netstream decoder.
Yes every AAC frame contains 1024 samples and each frame is equal to 23.21 milisecs (around 44 frames for 1 second of audio). Channel settings are irrelevant.
The image below illustrates the process. As you can see after the FLV header & metadata there is tags for BOTH types at first but afterwards its AAC type raw for the rest of the way. No ADTS means remove the 7 byte header from each AAC frame and shove what's left into FLV tags. I made one FLV audio tag per AAC frame (easier to deal with seeking & timestamps etc)...
After analysing a test FLV made with FFMPEG
inside a Hex editor, I understood to use both settings. I don't how they figured out you needed both instead of either one or other like the FLV Specs (ver 10.1) was suggesting. I bow my head to the genius of those guys & girls.
I was stuck because of this:
The "Process" image at top is enough for those who know netstream.appendbytes
to get on with it:
If you need some test audio files...
AAC Loop test 1: (credits: Mark "45" King) - http://goo.gl/U7IuWe
AAC Loop test 2: (credits: U.T.F.O) - http://goo.gl/W8ieJd
AAC Extended test: (credits: Enya) - http://goo.gl/EVCy4X