see my comments below for AStreamPlugin.