I'm implementing a very simple audio-only RTMP server.
I have my client code like this:
// get the default mic
var mic:Microphone= Microphone.getMicrophone();
// best quality (picks up all sounds, no transmission interruptions)
mic.setSilenceLevel(0);
// Using SPEEX codec with quality of 5
mic.codec = SoundCodec.SPEEX;
mic.encodeQuality = 5; // Required bit rate: 16.8 kbits/s,
// Rate is automatically set to 16K Hz if SPEEX codec is set
//mic.rate = 16;
mic.framesPerPacket = 1;
// Attach the mic to the NetStream
ns.attachAudio(mic);
ns.publish("SpeexAudioData", "record");
Then on the server, I keep receiving audio packets with size of either 43 bytes or 11 bytes (no other sizes found yet).
My questions are:
Thanks.