Wednesday, March 24, 2010

NetStream AAC audio stutering

I'm about to deliver an audio application developed in AS3, heavily based in the NetStream API as all the audio files are MP4 AAC ''streamed'' by progressive download.

Buffer is full, audio plays fine, etc.. But, when my application window is minimized, or other tab of my browser is active I experience audio stutering. It only happens with MP4/NetStream playback. MP3/Sound api doesn't suffer of the same problem.

It seems that any document using the NetStream API suffer this kind of stutering when there is some kind of activity on other documents in the browser while the window of the application reproducing sound is in the background.

To reproduce the problem, as an example, try to load this: http://www.vimeo.com/1868981

While the buffer is full, open other tabs and try to navigate on other sites. Every page loaded seems to interfere in the audio reproduction.

It should be noted that it doesn't happen with simple MP3 playback (Sound API).

I've only found this reference on Adobe's Bug Management System: (playback is unreliable when streaming aac+ audio with NetStream class) http://bugs.adobe.com/jira/browse/FP-153

It's dated about 6 months ago. I think I'm not the only person interested in the advantages of AAC playback.

Any clues on this bug?

Thanks in advance!

No comments:

Post a Comment